Module: BeforeActions::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/before_actions/controller.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#_execute_command(&block) ⇒ Object
27 28 29 |
# File 'lib/before_actions/controller.rb', line 27 def _execute_command(&block) Command.new(self).instance_eval(&block) end |
#execute_after_actions ⇒ Object
22 23 24 25 |
# File 'lib/before_actions/controller.rb', line 22 def execute_after_actions block = self.class.after_actions_block _execute_command(&block) end |
#execute_before_actions ⇒ Object
17 18 19 20 |
# File 'lib/before_actions/controller.rb', line 17 def execute_before_actions block = self.class.before_actions_block _execute_command(&block) end |