diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-01-03 20:16:53 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-01-03 20:42:14 -0500 |
commit | f9ed83321ac1d1902578a0aacdfe55d3db754219 (patch) | |
tree | 0fc95ce52e6d40471e09b3b1af66d56abc1d91b7 /railties/lib/rails/tasks | |
parent | f7782812f7e727178e4a743aa2874c078b722eef (diff) | |
download | rails-f9ed83321ac1d1902578a0aacdfe55d3db754219.tar.gz rails-f9ed83321ac1d1902578a0aacdfe55d3db754219.tar.bz2 rails-f9ed83321ac1d1902578a0aacdfe55d3db754219.zip |
Remove deprecated CONTROLLER environment variable for routes task
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index f5e5b9ae87..04daaf4a83 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -7,15 +7,8 @@ task routes: :environment do all_routes = Rails.application.routes.routes require "action_dispatch/routing/inspector" inspector = ActionDispatch::Routing::RoutesInspector.new(all_routes) - if ARGV.any? { |argv| argv.start_with? "CONTROLLER" } - puts <<-eow.strip_heredoc - 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 routes_filter = nil - routes_filter = { controller: ENV["CONTROLLER"] } if ENV["CONTROLLER"] OptionParser.new do |opts| opts.banner = "Usage: rails routes [options]" |