diff options
author | José Valim <jose.valim@gmail.com> | 2011-07-29 07:21:16 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-07-29 07:21:16 -0700 |
commit | 270fa63e9b16ae31371afa199d4de72afc41ac93 (patch) | |
tree | c24344a2348e5b8e3c8618058229aecc597ad04b | |
parent | 54463592cbfd78e1eb03bc1ac90e044dd30900a0 (diff) | |
parent | d8e62a93e388c674aa95b32b8688ba6e8366a643 (diff) | |
download | rails-270fa63e9b16ae31371afa199d4de72afc41ac93.tar.gz rails-270fa63e9b16ae31371afa199d4de72afc41ac93.tar.bz2 rails-270fa63e9b16ae31371afa199d4de72afc41ac93.zip |
Merge pull request #2339 from dgeb/mailers-in-plugins
Ensure that app/mailers gets created in new plugins (#2287 brought into master)
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb | 1 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory | 0 |
2 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb b/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb index 56b1587760..c46422437d 100644 --- a/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +++ b/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb @@ -19,6 +19,7 @@ module Rails empty_directory_with_gitkeep "app/controllers" empty_directory_with_gitkeep "app/views" empty_directory_with_gitkeep "app/helpers" + empty_directory_with_gitkeep "app/mailers" empty_directory_with_gitkeep "app/assets/images/#{name}" end end diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory b/railties/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/railties/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory |