aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-04-20 18:18:13 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-04-21 09:35:02 +0900
commitc3082b70554669ae65c7afbe9042b54209713e4b (patch)
treece823b487bd3ebd50ed7a6d3c17b2992ee40131e /railties
parent597fa0b42f90bbef6a8c7628d4e08fb132fba887 (diff)
downloadrails-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.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/plugin/templates/Rakefile2
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 %>