diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-19 00:49:04 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-19 01:36:06 +0100 |
commit | c7255386cd3d6de037a9b08b635f9ac299608ac4 (patch) | |
tree | 8fe549ef55b3cd2eb016b183c6eebdd27cb471c2 /railties/lib/generators/rails/mailer | |
parent | a18dd52d58aa6a69fb210c1e60c01074333170ba (diff) | |
download | rails-c7255386cd3d6de037a9b08b635f9ac299608ac4.tar.gz rails-c7255386cd3d6de037a9b08b635f9ac299608ac4.tar.bz2 rails-c7255386cd3d6de037a9b08b635f9ac299608ac4.zip |
`script/generate mailer Notifier` will now create a mailer at app/mailers.
Diffstat (limited to 'railties/lib/generators/rails/mailer')
-rw-r--r-- | railties/lib/generators/rails/mailer/USAGE | 4 | ||||
-rw-r--r-- | railties/lib/generators/rails/mailer/mailer_generator.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/generators/rails/mailer/USAGE b/railties/lib/generators/rails/mailer/USAGE index c56095b2c8..4b0b8ddc3b 100644 --- a/railties/lib/generators/rails/mailer/USAGE +++ b/railties/lib/generators/rails/mailer/USAGE @@ -9,7 +9,7 @@ Example: `./script/generate mailer Notifications signup forgot_password invoice` creates a Notifications mailer class, views, test, and fixtures: - Mailer: app/models/notifications.rb + Mailer: app/mailers/notifications.rb Views: app/views/notifications/signup.erb [...] - Test: test/unit/test/unit/notifications_test.rb + Test: test/functional/notifications_test.rb Fixtures: test/fixtures/notifications/signup [...] diff --git a/railties/lib/generators/rails/mailer/mailer_generator.rb b/railties/lib/generators/rails/mailer/mailer_generator.rb index 33f1665b83..8993181d79 100644 --- a/railties/lib/generators/rails/mailer/mailer_generator.rb +++ b/railties/lib/generators/rails/mailer/mailer_generator.rb @@ -5,7 +5,7 @@ module Rails check_class_collision def create_mailer_file - template "mailer.rb", File.join('app/models', class_path, "#{file_name}.rb") + template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}.rb") end hook_for :template_engine, :test_framework |