Sha256: 528eab63924301f9ca0c6748bd26411863a2925ec37f49b7e0245a3338214d28
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
# encoding: utf-8 require_dependency "awesome_nested_set" module Fastui class MOrg < MObject attr_accessible :parent_id, :parent acts_as_nested_set has_many :m_relationships, :foreign_key => 'm_org_id', :class_name => 'Fastui::MRelationship' has_many :act_roles, :through => :m_relationships, :source => :m_role has_many :actors, :through => :m_relationships, :source => :m_person belongs_to :parent, :class_name => 'Fastui::MOrg' alias :leaf :leaf? alias :expanded :child? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastui-0.1.6 | app/models/fastui/m_org.rb |
fastui-0.1.4 | app/models/fastui/m_org.rb |