diff options
author | Tyler Coville <tyler@tylercoville.com> | 2011-11-09 23:22:26 -0800 |
---|---|---|
committer | Tyler Coville <tyler@tylercoville.com> | 2011-11-09 23:22:26 -0800 |
commit | 49349089ad38b403bf3f395ebf8fbc44cd232b49 (patch) | |
tree | 9330c1b1dbe469d7a66b1fd9644b64964ae260fd /railties/lib | |
parent | a625523e755421b0f96fe5b0a885462ef51582b1 (diff) | |
download | rails-49349089ad38b403bf3f395ebf8fbc44cd232b49.tar.gz rails-49349089ad38b403bf3f395ebf8fbc44cd232b49.tar.bz2 rails-49349089ad38b403bf3f395ebf8fbc44cd232b49.zip |
Fixed error with 'rails generate new plugin' where the .gitignore was not properly generated if --dummy-path was used and added test case
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/gitignore | 6 |
2 files changed, 4 insertions, 4 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 4baa2110e7..f5c8ccf940 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 @@ -39,7 +39,7 @@ module Rails end def gitignore - copy_file "gitignore", ".gitignore" + template "gitignore", ".gitignore" end def lib diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/gitignore b/railties/lib/rails/generators/rails/plugin_new/templates/gitignore index 1463de6dfb..92bd3c614b 100644 --- a/railties/lib/rails/generators/rails/plugin_new/templates/gitignore +++ b/railties/lib/rails/generators/rails/plugin_new/templates/gitignore @@ -1,6 +1,6 @@ .bundle/ log/*.log pkg/ -test/dummy/db/*.sqlite3 -test/dummy/log/*.log -test/dummy/tmp/
\ No newline at end of file +<%= dummy_path %>/db/*.sqlite3 +<%= dummy_path %>/log/*.log +<%= dummy_path %>/tmp/
\ No newline at end of file |