Sha256: 79cf6d600757cd663aec93de639b90af429d596bd05c78bc2ae86b33438b8d62

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

class Sfn::Company < Sfn::Resource
  
  attributes :domain, :name, :logo, :description
  
  def setup_associations
    has_many :people, :url => "#{path}/people"
    has_many :topics, :url => "#{path}/topics"
    has_many :products, :url => "#{path}/products"
    has_many :employees, :url => "#{path}/employees", :class_name => 'Sfn::Person'
    has_many :tags, :url => "#{path}/tags"
    
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-satisfaction-0.7.5 lib/satisfaction/company.rb
ruby-satisfaction-0.7.4 lib/satisfaction/company.rb
ruby-satisfaction-0.7.3 lib/satisfaction/company.rb
ruby-satisfaction-0.7.0 lib/satisfaction/company.rb