Sha256: 8d0f3fadc423190ac33a250151e5614ed1b7fcdac34fbd12b9f98abd3070aeaf

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 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'


  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastui-0.1.3 app/models/fastui/m_org.rb
fastui-0.1.2 app/models/fastui/m_org.rb