mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "When generating a mailer, you must specify Mailer in the class name in"
This reverts commit8417d967e0
. In5697bdbb6d
andaf3eb5961e
, add mailer suffix to generated files and classes. Therefore, no longer need to specify `Mailer` to class name. [ci skip]
This commit is contained in:
parent
38b5af6595
commit
ea785e535e
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ module ActionMailer
|
|||
#
|
||||
# To use Action Mailer, you need to create a mailer model.
|
||||
#
|
||||
# $ rails generate mailer NotifierMailer
|
||||
# $ rails generate mailer Notifier
|
||||
#
|
||||
# The generated model inherits from <tt>ApplicationMailer</tt> which in turn
|
||||
# inherits from <tt>ActionMailer::Base</tt>. A mailer model defines methods
|
||||
|
|
|
@ -8,7 +8,7 @@ Description:
|
|||
|
||||
Example:
|
||||
========
|
||||
rails generate mailer NotificationsMailer signup forgot_password invoice
|
||||
rails generate mailer Notifications signup forgot_password invoice
|
||||
|
||||
creates a Notifications mailer class, views, and test:
|
||||
Mailer: app/mailers/notifications_mailer.rb
|
||||
|
|
Loading…
Reference in a new issue