Module: Oboe::Grape::Middleware::Error

Defined in:
lib/oboe/frameworks/grape.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



49
50
51
# File 'lib/oboe/frameworks/grape.rb', line 49

def self.included(klass)
  ::Oboe::Util.method_alias(klass, :call, ::Grape::Middleware::Error)
end

Instance Method Details

#call_with_oboe(boom) ⇒ Object



53
54
55
56
# File 'lib/oboe/frameworks/grape.rb', line 53

def call_with_oboe(boom)
  Oboe::API.log_exception(nil, boom) if Oboe.tracing?
  call_without_oboe(boom)
end