aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/rails/generators/mailer/mailer_generator.rb
Commit message (Collapse)AuthorAgeFilesLines
* Strip duplicated suffixes more strictlyRyuta Kamizono2018-04-221-1/+1
| | | | In the previous code incorrectly removes intermediate words.
* Use frozen string literal in actionmailer/Kir Shatrov2017-07-231-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Define path with __dir__bogdanvlviv2017-05-231-1/+1
| | | | | | ".. with __dir__ we can restore order in the Universe." - by @fxn Related to 5b8738c2df003a96f0e490c43559747618d10f5f
* `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
| | | | Actually, private methods cannot be called with `self.`, so it's not just redundant, it's a bad habit in Ruby
* Revert "Merge pull request #27550 from ↵Rafael Mendonça França2017-01-031-1/+1
| | | | | | | | | mtsmfm/fix-generator-command-for-nested-rails-engine" This reverts commit 1e969bfb98b88799e2c759fce25a1d8cf00d7ce7, reversing changes made to a5041f267ded119c2d00b8786c2f2c1e3f93c8a1. Reason: It breaks the public API
* Fix generator command for nested (namespaced) rails engineFumiaki MATSUSHIMA2017-01-031-1/+1
| | | | | | | | | | | | | If we create nested (namespaced) rails engine such like bukkits-admin, `bin/rails g scaffold User name:string age:integer` will create `bukkits-admin/app/controllers/bukkits/users_controller.rb` but it should create `bukkits-admin/app/controllers/bukkits/admin/users_controller.rb`. In #6643, we changed `namespaced_path` as root path because we supposed application_controller is always in root but nested rails engine's application_controller will not.
* Privatize unneededly protected methods in Action MailerAkira Matsuda2016-12-241-3/+2
|
* revises more Lint/EndAlignment offensesXavier Noria2016-08-081-3/+3
|
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-1/+1
|
* applies new string literal convention in actionmailer/libXavier Noria2016-08-061-3/+3
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Correctly generate application_mailer.rb in mountable enginesPrathamesh Sonpatki2016-03-121-2/+11
| | | | - Followup of https://github.com/rails/rails/pull/24161.
* improve some codeSen-Zhang2016-03-111-2/+4
|
* generate application_mailer.rb if it is missingSen-Zhang2016-03-111-0/+4
|
* Remove redundant regexp escapes in generatorsGadzhi Gadzhiev2016-03-081-1/+1
|
* ApplicationMailer should be generated by default just like every other ↵David Heinemeier Hansson2015-12-171-3/+0
| | | | Application* parent
* Add mailer suffix to generated files and classesCarlos Souza2015-01-061-2/+8
| | | | | Following the same naming convention used in controllers and jobs.
* Don't remove mailer layouts filesyuuji.yaginuma2014-11-271-1/+3
|
* Removing unnecessary File.join callsAndy Jeffries2014-11-241-1/+1
|
* Creates an ApplicationMailer and layout by default, including html and body ↵Andy Jeffries2014-11-211-0/+1
| | | | tags to reduce spam score
* Update actionmailer with new hash syntax.Kirill Nikitin2012-10-071-1/+1
|
* Update generators to use thor 0.13.6 with simpler source_root handling.José Valim2010-04-301-4/+2
|
* Reorganize the mailer generator a bit.José Valim2010-04-301-0/+18