Class: ClientRepresentative
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ClientRepresentative
- Includes:
- HasCredentialModelHelper
- Defined in:
- app/models/client_representative.rb
Class Method Summary collapse
-
.human_name ⇒ Object
This is used by the Nested Add_existing control label.
Instance Method Summary collapse
Methods included from HasCredentialModelHelper
append_features, #credential_after_save, #validate_credential_fields
Class Method Details
.human_name ⇒ Object
This is used by the Nested Add_existing control label
19 20 21 |
# File 'app/models/client_representative.rb', line 19 def self.human_name 'Representative' end |
Instance Method Details
#name ⇒ Object
12 13 14 15 16 |
# File 'app/models/client_representative.rb', line 12 def name [ first_name, last_name ].find_all{|x| x.try(:length).try(:>,0)}.join(' ') end |