Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
25
app/controllers/uninstall_controller.rb
Normal file
25
app/controllers/uninstall_controller.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
class UninstallController < ApplicationController
|
||||
|
||||
before_filter :init_objects
|
||||
|
||||
caches_page :index, :show
|
||||
|
||||
#layout "simple"
|
||||
|
||||
def index
|
||||
|
||||
end
|
||||
|
||||
def show
|
||||
render :action => "index"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def init_objects
|
||||
@product = Product.find_by_code(params[:id])
|
||||
@support_request = SupportRequest.new
|
||||
@support_request.support_request_origin = SupportRequestOrigin['why-uninstall']
|
||||
@support_request.product = @product
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user