Module: Sails::Service::Callbacks::ClassMethods

Defined in:
lib/sails/service/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#before_action(*names, &blk) ⇒ Object


19
20
21
22
23
# File 'lib/sails/service/callbacks.rb', line 19

def before_action(*names, &blk)
  names.each do |name|
    set_callback(:action, :before, name, &blk)
  end
end