diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-02 09:29:43 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-02 09:29:43 +0000 |
commit | 7c8d2f28e16958b16812b5fef3d7eca8b640e445 (patch) | |
tree | cddf56dc4b0fb169d6e4f48e359e4a91915f8feb /activerecord/lib/active_record/acts | |
parent | c788bcb416f4487f99a9e5dacf9a48623412b034 (diff) | |
download | rails-7c8d2f28e16958b16812b5fef3d7eca8b640e445.tar.gz rails-7c8d2f28e16958b16812b5fef3d7eca8b640e445.tar.bz2 rails-7c8d2f28e16958b16812b5fef3d7eca8b640e445.zip |
Removed broken attempt to DRY module ClassMethod #970
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/acts')
-rw-r--r-- | activerecord/lib/active_record/acts/list.rb | 5 | ||||
-rw-r--r-- | activerecord/lib/active_record/acts/tree.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/acts/list.rb b/activerecord/lib/active_record/acts/list.rb index c6a33cf9a0..abd295d4e9 100644 --- a/activerecord/lib/active_record/acts/list.rb +++ b/activerecord/lib/active_record/acts/list.rb @@ -1,6 +1,11 @@ module ActiveRecord module Acts #:nodoc: module List #:nodoc: + def self.append_features(base) + super + base.extend(ClassMethods) + end + # This act provides the capabilities for sorting and reordering a number of objects in list. # The class that has this specified needs to have a "position" column defined as an integer on # the mapped database table. diff --git a/activerecord/lib/active_record/acts/tree.rb b/activerecord/lib/active_record/acts/tree.rb index 5fd1a59334..61163941d3 100644 --- a/activerecord/lib/active_record/acts/tree.rb +++ b/activerecord/lib/active_record/acts/tree.rb @@ -1,6 +1,11 @@ module ActiveRecord module Acts #:nodoc: module Tree #:nodoc: + def self.append_features(base) + super + base.extend(ClassMethods) + end + # Specify this act if you want to model a tree structure by providing a parent association and an children # association. This act assumes that requires that you have a foreign key column, which by default is called parent_id. # |