Module: Errship3::MongoMapper::Rescuers

Defined in:
lib/rescuers/mongo_mapper.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/rescuers/mongo_mapper.rb', line 4

def self.included(base)
  unless Rails.application.config.consider_all_requests_local
    base.rescue_from ::MongoMapper::DocumentNotFound, :with => :render_404_error
  end
end