diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-12 13:46:33 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-12 13:47:49 -0500 |
commit | f4e180578c673194f58d4ff5a4a656cc51b2249e (patch) | |
tree | c1004a8c06730d9cea9f5dd0e5837f95f7713258 /activesupport/lib/active_support/rescuable.rb | |
parent | 961355a9f34a9cdb3001d8a4b69741408145ebb8 (diff) | |
download | rails-f4e180578c673194f58d4ff5a4a656cc51b2249e.tar.gz rails-f4e180578c673194f58d4ff5a4a656cc51b2249e.tar.bz2 rails-f4e180578c673194f58d4ff5a4a656cc51b2249e.zip |
update some AS code examples to 1.9 hash syntax [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/rescuable.rb')
-rw-r--r-- | activesupport/lib/active_support/rescuable.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/rescuable.rb b/activesupport/lib/active_support/rescuable.rb index 7aecdd11d3..9a038dfbca 100644 --- a/activesupport/lib/active_support/rescuable.rb +++ b/activesupport/lib/active_support/rescuable.rb @@ -31,11 +31,11 @@ module ActiveSupport # any. # # class ApplicationController < ActionController::Base - # rescue_from User::NotAuthorized, :with => :deny_access # self defined exception - # rescue_from ActiveRecord::RecordInvalid, :with => :show_errors + # rescue_from User::NotAuthorized, with: :deny_access # self defined exception + # rescue_from ActiveRecord::RecordInvalid, with: :show_errors # # rescue_from 'MyAppError::Base' do |exception| - # render :xml => exception, :status => 500 + # render xml: exception, status: 500 # end # # protected |