class method
self.preview_name
Ruby on Rails 8.0.4
Since v4.1.16Signature
self.preview_name()
Returns the underscored name of the mailer preview without the suffix.
Source
# File actionmailer/lib/action_mailer/preview.rb, line 116
def preview_name
name.delete_suffix("Preview").underscore
end
Defined in actionmailer/lib/action_mailer/preview.rb line 116
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Preview