Method: Grape::Endpoint.run_before_each

Defined in:
lib/grape/endpoint.rb

.run_before_each(endpoint) ⇒ Object



31
32
33
34
# File 'lib/grape/endpoint.rb', line 31

def run_before_each(endpoint)
  superclass.run_before_each(endpoint) unless self == Endpoint
  before_each.each { |blk| blk.call(endpoint) }
end