Module: Errship3::Mongoid::Rescuers
- Defined in:
- lib/rescuers/mongoid.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 |
# File 'lib/rescuers/mongoid.rb', line 4 def self.included(base) unless Rails.application.config.consider_all_requests_local base.rescue_from ::Mongoid::Errors::DocumentNotFound, :with => :render_404_error end end |