Module: Jun::ActionController::Callbacks
- Included in:
- Base
- Defined in:
- lib/jun/action_controller/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Callback
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
6
7
8
|
# File 'lib/jun/action_controller/callbacks.rb', line 6
def self.included(base)
base.extend ClassMethods
end
|
Instance Method Details
#handle_response(action) ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/jun/action_controller/callbacks.rb', line 10
def handle_response(action)
self.class.before_actions.each do |callback|
callback.call(self) if callback.match?(action)
end
super
end
|