Sha256: 9891ecd6f713170cd8fdbd311a389663b2e15f2cced9a7b272d5c32ce12c6aa0

Contents?: true

Size: 267 Bytes

Versions: 8

Compression:

Stored size: 267 Bytes

Contents

class PartyRole < ActiveRecord::Base
    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-3.0.7 app/models/party_role.rb
erp_base_erp_svcs-3.0.6 app/models/party_role.rb
erp_base_erp_svcs-3.0.5 app/models/party_role.rb
erp_base_erp_svcs-3.0.4 app/models/party_role.rb
erp_base_erp_svcs-3.0.3 app/models/party_role.rb
erp_base_erp_svcs-3.0.2 app/models/party_role.rb
erp_base_erp_svcs-3.0.1 app/models/party_role.rb
erp_base_erp_svcs-3.0.0 app/models/party_role.rb