module CableX::Channel::Process::Controller
Process
controller specific tasks
Public Instance Methods
controller_klass()
click to toggle source
# File lib/cable_x/channel/process/controller.rb, line 24 def controller_klass controller_klass_name = controller_action_hash[:controller].split('/').map(&:camelize).join('::') "#{controller_klass_name}Controller".constantize end
invoke_controller()
click to toggle source
# File lib/cable_x/channel/process/controller.rb, line 13 def invoke_controller set_controller set_request set_response controller_klass.dispatch(controller_action_hash[:action], request, response) end
set_controller()
click to toggle source
# File lib/cable_x/channel/process/controller.rb, line 9 def set_controller set_controller_hash end
set_controller_hash()
click to toggle source
# File lib/cable_x/channel/process/controller.rb, line 20 def set_controller_hash @controller_action_hash = Rails.application.routes.recognize_path data['path'], { method: data['method'] } end