Module: SimpleController::Base::Core
- Extended by:
- ActiveSupport::Concern
- Included in:
- SimpleController::Base
- Defined in:
- lib/simple_controller/base/core.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#call(action_name, params = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/simple_controller/base/core.rb', line 10 def call(action_name, params={}) @params ||= ActiveSupport::HashWithIndifferentAccess.new(params) @action_name ||= action_name.to_s @controller_path ||= params[:controller] @controller_name ||= controller_path.split("/").last if controller_path call_action end |