Class: Person
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Person
- Defined in:
- app/models/person.rb
Instance Method Summary collapse
Instance Method Details
#display_name ⇒ Object
21 22 23 |
# File 'app/models/person.rb', line 21 def display_name "#{self.first_name} #{self.last_name}" end |
#set_attachment_file_path ⇒ Object
8 9 10 11 12 13 |
# File 'app/models/person.rb', line 8 def # The default behavior is use /attachments/file.txt for the attachment path, # assuming file.txt was the name of the file the user uploaded # You should override this with your own strategy for setting the attachment path super end |
#set_attachment_section ⇒ Object
15 16 17 18 19 |
# File 'app/models/person.rb', line 15 def # The default behavior is to put all attachments in the root section # Override this method if you would like to change that super end |