26 lines
470 B
Ruby
26 lines
470 B
Ruby
|
|
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
|