diff options
Diffstat (limited to 'activerecord/test/fixtures/mixin.rb')
-rw-r--r-- | activerecord/test/fixtures/mixin.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/mixin.rb b/activerecord/test/fixtures/mixin.rb index 1b6099901f..b14b0f3132 100644 --- a/activerecord/test/fixtures/mixin.rb +++ b/activerecord/test/fixtures/mixin.rb @@ -1,9 +1,12 @@ class Mixin < ActiveRecord::Base - acts_as_tree :foreign_key => "parent_id", :order => "id" end -class ListMixin < ActiveRecord::Base +class TreeMixin < Mixin + acts_as_tree :foreign_key => "parent_id", :order => "id" +end + +class ListMixin < Mixin acts_as_list :column => "pos", :scope => :parent def self.table_name() "mixins" end |