diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-24 09:42:28 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-24 09:42:28 +0100 |
commit | 5b26fa48755c461619f7d48f4cd28faa9db442f8 (patch) | |
tree | ca7bee63fc5f0d06bf3a067f548695802e9a8d8f /railties/lib/generators/rails/plugin | |
parent | 2fde9d774b322fc708990675671231c64c691a33 (diff) | |
download | rails-5b26fa48755c461619f7d48f4cd28faa9db442f8.tar.gz rails-5b26fa48755c461619f7d48f4cd28faa9db442f8.tar.bz2 rails-5b26fa48755c461619f7d48f4cd28faa9db442f8.zip |
Make plugin generator compatible with new schema.
Diffstat (limited to 'railties/lib/generators/rails/plugin')
-rw-r--r-- | railties/lib/generators/rails/plugin/plugin_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/generators/rails/plugin/templates/lib/tasks/%file_name%_tasks.rake.tt (renamed from railties/lib/generators/rails/plugin/templates/tasks/%file_name%_tasks.rake.tt) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/plugin/plugin_generator.rb b/railties/lib/generators/rails/plugin/plugin_generator.rb index b68b8691db..8f01dcd589 100644 --- a/railties/lib/generators/rails/plugin/plugin_generator.rb +++ b/railties/lib/generators/rails/plugin/plugin_generator.rb @@ -17,7 +17,7 @@ module Rails def create_tasks_files return unless options[:tasks] - directory 'tasks', plugin_dir('tasks') + directory 'lib/tasks', plugin_dir('lib/tasks') end hook_for :generator do |generator| diff --git a/railties/lib/generators/rails/plugin/templates/tasks/%file_name%_tasks.rake.tt b/railties/lib/generators/rails/plugin/templates/lib/tasks/%file_name%_tasks.rake.tt index 72920a9d3a..72920a9d3a 100644 --- a/railties/lib/generators/rails/plugin/templates/tasks/%file_name%_tasks.rake.tt +++ b/railties/lib/generators/rails/plugin/templates/lib/tasks/%file_name%_tasks.rake.tt |