class method
self.preview_name
Ruby on Rails 5.2.8.1
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 100
def preview_name
name.sub(/Preview$/, "").underscore
end
Defined in actionmailer/lib/action_mailer/preview.rb line 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Preview