16 lines
547 B
Ruby
16 lines
547 B
Ruby
class OrbitFrontendComponentController< ApplicationController
|
|
before_filter :setup_vars
|
|
before_filter {|c| c.front_end_available(@app_title)}
|
|
layout "module_widget"
|
|
|
|
def setup_vars
|
|
@app_title = request.fullpath.split('/')[2]
|
|
end
|
|
|
|
def delay_impressionist(item)
|
|
user_id = current_user.nil? ? nil : current_user.id
|
|
Resque.enqueue(DelayedImpressionist,:request=>DelayImpressionistRequest.new(request),:obj=>item,:class=>item.class.to_s,:controller_name=>controller_name,:action_name=>action_name,:user=>user_id)
|
|
end
|
|
|
|
|
|
end |