Method: StandardModel#created_by_display_name

Defined in:
lib/app/models/concerns/standard_model.rb

#created_by_display_nameObject

Safely get the display name of who created this object



235
236
237
238
239
# File 'lib/app/models/concerns/standard_model.rb', line 235

def created_by_display_name
  created_by.display_name
rescue StandardError
  "#{created_by_name} (#{created_by_email}) - deleted"
end