blob: 6da85e55e778795a583d144a5212790d8bee4638 (
plain) (
tree)
|
|
class Mixin < ActiveRecord::Base
acts_as_tree :foreign_key => "parent_id", :order => "id"
end
class ListMixin < ActiveRecord::Base
acts_as_list :column => "pos", :scope => :parent
def self.table_name
"mixins"
end
end
|