Class: Me::ErrorPresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/me/error_presenter.rb

Defined Under Namespace

Modules: ReRaise Classes: Incident

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
# File 'lib/me/error_presenter.rb', line 6

def call
  yield
rescue Errors::Base => error
  Incident[error].view
end