Method: Exposure::Callbacks::ClassMethods#before
- Defined in:
- lib/exposure/behaviors/callbacks.rb
#before(trigger, *actions) ⇒ Object
access point for creating and configuring before_ callbacks.
10 11 12 13 14 15 |
# File 'lib/exposure/behaviors/callbacks.rb', line 10 def before(trigger, *actions) = actions. actions.each do |action| build_callback('before', trigger, action, ) end end |