Class: ClientRepresentative

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
HasCredentialModelHelper
Defined in:
app/models/client_representative.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasCredentialModelHelper

append_features, #credential_after_save, #validate_credential_fields

Class Method Details

.human_nameObject

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

#nameObject



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