Method: ActionMailer::Preview.preview_name

Defined in:
actionmailer/lib/action_mailer/preview.rb

.preview_nameObject

Returns the underscored name of the mailer preview without the suffix.



116
117
118
# File 'actionmailer/lib/action_mailer/preview.rb', line 116

def preview_name
  name.delete_suffix("Preview").underscore
end