spec/support/models.rb in closure_tree-4.2.7 vs spec/support/models.rb in closure_tree-4.2.8
- old
+ new
@@ -91,5 +91,11 @@
class Type < ActiveRecord::Base
acts_as_tree :dependent => :destroy
attr_accessible :name if _ct.use_attr_accessible?
end
end
+
+class Metal < ActiveRecord::Base
+ self.table_name = 'metal'
+ acts_as_tree :order => 'sort_order'
+ self.inheritance_column = 'metal_type'
+end