Class: ProfileAffiliation

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/profile_affiliation.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_s

accepts_nested_attributes_for :department, :organization, :title

validates_associated  :department, :organization, :title


11
12
13
# File 'app/models/profile_affiliation.rb', line 11

def to_s
  affiliation = "#{self.title}, #{self.department}, #{self.organization}"
end