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
169 170 171 172 173 |
# File 'lib/app/models/notification.rb', line 169 def (template_name) Template.find_by(account: nil, name: template_name.to_s).template rescue StandardError nil end |