spec/support/models.rb in closure_tree-3.1.0 vs spec/support/models.rb in closure_tree-3.2.0
- old
+ new
@@ -1,7 +1,7 @@
class Tag < ActiveRecord::Base
- acts_as_tree :dependent => :destroy
+ acts_as_tree :dependent => :destroy, :order => "name"
before_destroy :add_destroyed_tag
attr_accessible :name
def to_s
name
@@ -27,10 +27,10 @@
email
end
end
class Label < ActiveRecord::Base
- acts_as_tree
+ acts_as_tree :order => "sort_order"
attr_accessible :name
def to_s
"#{self.class}: #{name}"
end