diff options
author | Marcel Molina <marcel@vernix.org> | 2006-04-29 18:10:14 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-04-29 18:10:14 +0000 |
commit | 61864909628f5ac2f20d3337e0274dab016ac7c5 (patch) | |
tree | 86a8cc11110b1009f23fe0c72a6138f8ac45d31a /activerecord/lib/active_record/acts | |
parent | df26041c8990d4a0276e7a4c77cc771ac38e176e (diff) | |
download | rails-61864909628f5ac2f20d3337e0274dab016ac7c5.tar.gz rails-61864909628f5ac2f20d3337e0274dab016ac7c5.tar.bz2 rails-61864909628f5ac2f20d3337e0274dab016ac7c5.zip |
Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/acts')
-rw-r--r-- | activerecord/lib/active_record/acts/list.rb | 3 | ||||
-rw-r--r-- | activerecord/lib/active_record/acts/nested_set.rb | 3 | ||||
-rw-r--r-- | activerecord/lib/active_record/acts/tree.rb | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/acts/list.rb b/activerecord/lib/active_record/acts/list.rb index 0e0e1e4f36..6d235967c6 100644 --- a/activerecord/lib/active_record/acts/list.rb +++ b/activerecord/lib/active_record/acts/list.rb @@ -1,8 +1,7 @@ module ActiveRecord module Acts #:nodoc: module List #:nodoc: - def self.append_features(base) - super + def self.included(base) base.extend(ClassMethods) end diff --git a/activerecord/lib/active_record/acts/nested_set.rb b/activerecord/lib/active_record/acts/nested_set.rb index 8b02b358a9..9d5bcf4d3d 100644 --- a/activerecord/lib/active_record/acts/nested_set.rb +++ b/activerecord/lib/active_record/acts/nested_set.rb @@ -1,8 +1,7 @@ module ActiveRecord module Acts #:nodoc: module NestedSet #:nodoc: - def self.append_features(base) - super + def self.included(base) base.extend(ClassMethods) end diff --git a/activerecord/lib/active_record/acts/tree.rb b/activerecord/lib/active_record/acts/tree.rb index c5aa4cd22d..b8654ce4e6 100644 --- a/activerecord/lib/active_record/acts/tree.rb +++ b/activerecord/lib/active_record/acts/tree.rb @@ -1,8 +1,7 @@ module ActiveRecord module Acts #:nodoc: module Tree #:nodoc: - def self.append_features(base) - super + def self.included(base) base.extend(ClassMethods) end |