diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-03 07:51:27 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-03 07:51:27 +0100 |
commit | 3fed7dd22475b16d207b477b73dc370bfeba73f9 (patch) | |
tree | dc8d847c272f777f34b53b91e926ba9bc34fcd05 /railties/lib/rails | |
parent | bcd0c8cfc250039ddc145c3302633c4890880930 (diff) | |
parent | fae17243984965b152d8212be6405ce840887018 (diff) | |
download | rails-3fed7dd22475b16d207b477b73dc370bfeba73f9.tar.gz rails-3fed7dd22475b16d207b477b73dc370bfeba73f9.tar.bz2 rails-3fed7dd22475b16d207b477b73dc370bfeba73f9.zip |
Merge pull request #23436 from y-yagi/use_bin_command_in_routes_task
use rails command in routes task
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index 353b8b4e72..939fa59c75 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -9,8 +9,8 @@ task routes: :environment do inspector = ActionDispatch::Routing::RoutesInspector.new(all_routes) if ARGV.any?{ |argv| argv.start_with? 'CONTROLLER' } puts <<-eow.strip_heredoc - Passing `CONTROLLER` to `bin/rake routes` is deprecated and will be removed in Rails 5.1. - Please use `bin/rake routes -c controller_name` instead. + Passing `CONTROLLER` to `bin/rails routes` is deprecated and will be removed in Rails 5.1. + Please use `bin/rails routes -c controller_name` instead. eow end @@ -18,7 +18,7 @@ task routes: :environment do routes_filter = { controller: ENV['CONTROLLER'] } if ENV['CONTROLLER'] OptionParser.new do |opts| - opts.banner = "Usage: rake routes [options]" + opts.banner = "Usage: rails routes [options]" opts.on("-c", "--controller [CONTROLLER]") do |controller| routes_filter = { controller: controller } end |