aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/wrappings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/wrappings.rb')
-rw-r--r--activerecord/lib/active_record/wrappings.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/wrappings.rb b/activerecord/lib/active_record/wrappings.rb
index 1284450994..01976417b7 100644
--- a/activerecord/lib/active_record/wrappings.rb
+++ b/activerecord/lib/active_record/wrappings.rb
@@ -9,6 +9,11 @@ module ActiveRecord
end
end
+ def self.append_features(base)
+ super
+ base.extend(ClassMethods)
+ end
+
class AbstractWrapper #:nodoc:
def self.wrap(attribute, record_binding) #:nodoc:
%w( before_save after_save after_initialize ).each do |callback|