aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Use .tt extension to all the template filesRafael Mendonça França2017-11-132-0/+0
| | | | | | | | Make clear that the files are not to be run for interpreters. Fixes #23847. Fixes #30690. Closes #23878.
* 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.
* remove blank line generated in application_mailer.rbyuuji.yaginuma2016-04-081-1/+1
|
* Merge pull request #24164 from prathamesh-sonpatki/fix-application-mailerRafael França2016-03-232-2/+13
|\ | | | | Correctly generate application_mailer.rb in mountable engines
| * Correctly generate application_mailer.rb in mountable enginesPrathamesh Sonpatki2016-03-122-2/+13
| | | | | | | | - Followup of https://github.com/rails/rails/pull/24161.
* | Fix generator test to match to use the stringRafael Mendonça França2016-03-211-1/+1
| |
* | switched layout :mailer to a string so that mail layout can be properly ↵Matt Hall2016-03-171-1/+1
|/ | | | found and mail can be delivered properly
* improve some codeSen-Zhang2016-03-111-2/+4
|
* generate application_mailer.rb if it is missingSen-Zhang2016-03-112-0/+8
|
* Remove redundant regexp escapes in generatorsGadzhi Gadzhiev2016-03-081-1/+1
|
* Revert "When generating a mailer, you must specify Mailer in the class name in"yuuji.yaginuma2016-02-061-1/+1
| | | | | | | | This reverts commit 8417d967e016f0219cc4ec30bf0d3908ce6cd29b. In 5697bdbb6da5d08e541a3b12251cec90269b059b and af3eb5961e55a46b011be797e71f615f20f56686, add mailer suffix to generated files and classes. Therefore, no longer need to specify `Mailer` to class name. [ci skip]
* When generating a mailer, you must specify Mailer in the class name inAndrew Kaspick2016-02-051-1/+1
| | | | | order to generate the proper files. Some of the docs/comments are missing this important detail.
* ApplicationMailer should be generated by default just like every other ↵David Heinemeier Hansson2015-12-172-7/+0
| | | | Application* parent
* Merge pull request #18393 from y-yagi/fix_mailerRafael Mendonça França2015-02-181-2/+2
|\ | | | | follow up to #18074
| * follow up to #18074yuuji.yaginuma2015-01-081-2/+2
| | | | | | | | | | * ignore mailer suffix when generate test files * add mailer suffix to view files
* | Add _mailer suffix to i18n pathCarlos Souza2015-01-081-1/+1
|/ | | | | | For mailers created via generators Follow up to #18074
* Add mailer suffix to generated files and classesCarlos Souza2015-01-063-4/+10
| | | | | 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-213-2/+6
| | | | tags to reduce spam score
* Update mailer generator USAGEAkira Matsuda2013-01-061-3/+2
| | | | | * it does not generate fixtures * it generates .text.erb templates
* Update test locationsMike Moore2012-10-091-1/+1
| | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
* Update actionmailer with new hash syntax.Kirill Nikitin2012-10-071-1/+1
|
* Updated/changed useless tr/gsubsJurriaan Pruis2012-04-031-1/+1
|
* Remove key_value helper now that master is 1.9 only and we always useRafael Mendonça França2012-03-131-2/+2
| | | | the 1.9 hash syntax in the generators.
* Correct grammar on Mailer generator -- passES. Working on enhancing ↵Kristian Freeman2011-12-221-1/+1
| | | | conventional readability in README and USAGE files.
* copy-edits 7c2db6c, cbf2af1, and f391f94Xavier Noria2011-06-181-1/+1
|
* typo changesJudeArasu2011-06-141-1/+1
|
* Example Usage updated for actionpack and actionmailer.Arun Agrawal2011-05-191-1/+1
|
* Update Mailer generator to use 1.9 styled hash when run on Ruby 1.9Prem Sichanugrist2011-05-131-2/+2
| | | | As always, you can run `--old-style-hash` to override that.
* style changesJudeArasu2011-03-061-3/+5
|
* Revert "style changes"JudeArasu2011-03-061-3/+3
| | | | This reverts commit 1d4826937e438ebcd6a2f9e29d2e466a43fef7a8.
* style changesJudeArasu2011-03-061-3/+3
|
* styles applied for usageJudeArasu2011-03-061-3/+4
|
* mailer comment should use namespace in commentAditya Sanghi2010-10-061-1/+1
|
* Add namespacing to mailer generatorPiotr Sarnacki2010-09-251-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Tidy up generators based on latest change on AM.José Valim2010-06-131-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-303-0/+49