diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-04-20 18:18:13 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-04-21 09:35:02 +0900 |
commit | c3082b70554669ae65c7afbe9042b54209713e4b (patch) | |
tree | ce823b487bd3ebd50ed7a6d3c17b2992ee40131e | |
parent | 597fa0b42f90bbef6a8c7628d4e08fb132fba887 (diff) | |
download | rails-c3082b70554669ae65c7afbe9042b54209713e4b.tar.gz rails-c3082b70554669ae65c7afbe9042b54209713e4b.tar.bz2 rails-c3082b70554669ae65c7afbe9042b54209713e4b.zip |
use wrapper file to add rake task for engines
`bundler` provides wrapper file to add rask tasks.
https://github.com/bundler/bundler/blob/master/lib/bundler/gem_tasks.rb
Instead of directly call method, by which require this file,
it can be used without updating of Rakefile if task has been added.
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/Rakefile b/railties/lib/rails/generators/rails/plugin/templates/Rakefile index f1943644e4..383d2fb2d1 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/Rakefile +++ b/railties/lib/rails/generators/rails/plugin/templates/Rakefile @@ -25,5 +25,5 @@ load 'rails/tasks/statistics.rake' <% unless options[:skip_gemspec] -%> -Bundler::GemHelper.install_tasks +require 'bundler/gem_tasks' <% end %> |