Sha256: e089892d3ba2adaa7449fa8dacb68891d6c9de2661abb613baa15ff22a082625

Contents?: true

Size: 300 Bytes

Versions: 8

Compression:

Stored size: 300 Bytes

Contents

class PartyRole < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  belongs_to :party, :class_name => "Party", :foreign_key => "party_id"
  belongs_to :role_type, :class_name => "RoleType", :foreign_key => "role_type_id"

  def to_label
    self.role_type.description
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.2.0 app/models/party_role.rb
erp_base_erp_svcs-4.0.0 app/models/party_role.rb
erp_base_erp_svcs-3.1.5 app/models/party_role.rb
erp_base_erp_svcs-3.1.4 app/models/party_role.rb
erp_base_erp_svcs-3.1.3 app/models/party_role.rb
erp_base_erp_svcs-3.1.2 app/models/party_role.rb
erp_base_erp_svcs-3.1.1 app/models/party_role.rb
erp_base_erp_svcs-3.1.0 app/models/party_role.rb