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