Class: Person

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

Instance Method Summary collapse

Instance Method Details

#display_nameObject



21
22
23
# File 'app/models/person.rb', line 21

def display_name
  "#{self.first_name} #{self.last_name}"
end

#set_attachment_file_pathObject



8
9
10
11
12
13
# File 'app/models/person.rb', line 8

def set_attachment_file_path
  # 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_sectionObject



15
16
17
18
19
# File 'app/models/person.rb', line 15

def set_attachment_section
  # The default behavior is to put all attachments in the root section
  # Override this method if you would like to change that
  super
end