Module: Errship::ActiveRecord::Rescuers

Defined in:
lib/rescuers/active_record.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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