Method: Errship3::Rescuers.included
- Defined in:
- lib/errship3.rb
.included(base) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/errship3.rb', line 16 def self.included(base) unless Rails.application.config.consider_all_requests_local base.rescue_from ActionController::RoutingError, :with => :render_404_error base.rescue_from ActionController::UnknownController, :with => :render_404_error base.rescue_from ::AbstractController::ActionNotFound, :with => :render_404_error end end |