diff options
author | Erik Michaels-Ober <sferik@gmail.com> | 2014-10-13 11:47:16 +0100 |
---|---|---|
committer | Erik Michaels-Ober <sferik@gmail.com> | 2014-10-13 11:47:16 +0100 |
commit | 8bb33e920a8627d38d52c1faa6dfd620d6799582 (patch) | |
tree | 1aac3dee92766b5eb8d7281e7e5956eac16c3eee /railties/lib/rails/generators | |
parent | 996aab576eefb351025ae1d56371f41a0eb074c5 (diff) | |
download | rails-8bb33e920a8627d38d52c1faa6dfd620d6799582.tar.gz rails-8bb33e920a8627d38d52c1faa6dfd620d6799582.tar.bz2 rails-8bb33e920a8627d38d52c1faa6dfd620d6799582.zip |
Replace Enumerable#reverse.each with Enumerable#reverse_each
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/controller/controller_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/controller/controller_generator.rb b/railties/lib/rails/generators/rails/controller/controller_generator.rb index a48cc13ed7..df615c88b5 100644 --- a/railties/lib/rails/generators/rails/controller/controller_generator.rb +++ b/railties/lib/rails/generators/rails/controller/controller_generator.rb @@ -12,7 +12,7 @@ module Rails def add_routes unless options[:skip_routes] - actions.reverse.each do |action| + actions.reverse_each do |action| route generate_routing_code(action) end end |