aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/rescuable.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-13 23:30:06 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-13 23:30:06 -0500
commit7b169ed1bb424929e332e998a75cdb4635c26f62 (patch)
tree3b9af405882e8f91541a7d4195e3c2213e99e16b /activesupport/lib/active_support/rescuable.rb
parent9cd50e7752650a3d6bf8545b51d50619d6e70c0b (diff)
downloadrails-7b169ed1bb424929e332e998a75cdb4635c26f62.tar.gz
rails-7b169ed1bb424929e332e998a75cdb4635c26f62.tar.bz2
rails-7b169ed1bb424929e332e998a75cdb4635c26f62.zip
Extend Callbacks and Rescuable with AS concern
Diffstat (limited to 'activesupport/lib/active_support/rescuable.rb')
-rw-r--r--activesupport/lib/active_support/rescuable.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/rescuable.rb b/activesupport/lib/active_support/rescuable.rb
index a7258c870a..879662c16c 100644
--- a/activesupport/lib/active_support/rescuable.rb
+++ b/activesupport/lib/active_support/rescuable.rb
@@ -4,11 +4,11 @@ require 'active_support/core_ext/proc'
module ActiveSupport
# Rescuable module adds support for easier exception handling.
module Rescuable
- def self.included(base) # :nodoc:
- base.class_inheritable_accessor :rescue_handlers
- base.rescue_handlers = []
+ extend Concern
- base.extend(ClassMethods)
+ included do
+ class_inheritable_accessor :rescue_handlers
+ self.rescue_handlers = []
end
module ClassMethods