diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-08-10 15:35:44 +0300 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-08-10 15:35:44 +0300 |
commit | e7bdf54de3a94986c35204ad28e2cbd0a4e98c46 (patch) | |
tree | 2445ad7be2750153f3a2c2e3676d4ef5953ded8e | |
parent | fd8e093ee8aeb5ad92198be51178492c088ff506 (diff) |
Make method name clearer
-rw-r--r-- | app/controllers/admin_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 0bccd3358..f5191504e 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -17,7 +17,7 @@ class AdminController < ApplicationController end # Always give full stack trace for admin interface - def local_request? + def show_rails_exceptions? true end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2cbb826af..2ce44011f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -121,7 +121,7 @@ class ApplicationController < ActionController::Base def render_exception(exception) # In development or the admin interface let Rails handle the exception # with its stack trace templates - if Rails.application.config.consider_all_requests_local || local_request? + if Rails.application.config.consider_all_requests_local || show_rails_exceptions? raise exception end @@ -147,7 +147,7 @@ class ApplicationController < ActionController::Base end end - def local_request? + def show_rails_exceptions? false end |