From 7c8d2f28e16958b16812b5fef3d7eca8b640e445 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 Apr 2005 09:29:43 +0000 Subject: Removed broken attempt to DRY module ClassMethod #970 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/wrappings.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/lib/active_record/wrappings.rb') 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| -- cgit v1.2.3