Module: Grape::DSL::Callbacks::ClassMethods

Defined in:
lib/grape/dsl/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#after(&block) ⇒ Object


23
24
25
# File 'lib/grape/dsl/callbacks.rb', line 23

def after(&block)
  namespace_stackable(:afters, block)
end

#after_validation(&block) ⇒ Object


19
20
21
# File 'lib/grape/dsl/callbacks.rb', line 19

def after_validation(&block)
  namespace_stackable(:after_validations, block)
end

#before(&block) ⇒ Object


11
12
13
# File 'lib/grape/dsl/callbacks.rb', line 11

def before(&block)
  namespace_stackable(:befores, block)
end

#before_validation(&block) ⇒ Object


15
16
17
# File 'lib/grape/dsl/callbacks.rb', line 15

def before_validation(&block)
  namespace_stackable(:before_validations, block)
end