Module: BeforeActions::Controller::ClassMethods
- Defined in:
- lib/before_actions/controller/controller.rb
Instance Method Summary collapse
Instance Method Details
#after_actions(&block) ⇒ Object
9 10 11 |
# File 'lib/before_actions/controller/controller.rb', line 9 def after_actions(&block) Scope.new(self, 'after').instance_eval(&block) end |
#around_actions(&block) ⇒ Object
12 13 14 |
# File 'lib/before_actions/controller/controller.rb', line 12 def around_actions(&block) Scope.new(self, 'around').instance_eval(&block) end |
#before_actions(&block) ⇒ Object
6 7 8 |
# File 'lib/before_actions/controller/controller.rb', line 6 def before_actions(&block) Scope.new(self, 'before').instance_eval(&block) end |