Method: Notification#default_message_template

Defined in:
lib/app/models/notification.rb

#default_message_template(template_name) ⇒ Object

Get the default template stored in the database that is not associated with an account



172
173
174
175
176
# File 'lib/app/models/notification.rb', line 172

def default_message_template(template_name)
  Template.find_by(account: nil, name: template_name.to_s).template
rescue StandardError
  nil
end