diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-02-22 14:09:43 -0500 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-02-22 14:30:21 -0500 |
commit | c5a9c02e01040831f7e00d3dfa0cfe423f7eb1f9 (patch) | |
tree | 02440fd4138684d5af38c7a12ff5e44f14183746 /activesupport/lib/active_support/core_ext/array/conversions.rb | |
parent | 31f807c7aaaf12c16ea1572559c00f49d54d6f43 (diff) | |
download | rails-c5a9c02e01040831f7e00d3dfa0cfe423f7eb1f9.tar.gz rails-c5a9c02e01040831f7e00d3dfa0cfe423f7eb1f9.tar.bz2 rails-c5a9c02e01040831f7e00d3dfa0cfe423f7eb1f9.zip |
Fix backwards compatibility with Rails 3 apps.
When we removed script/rails and introduced bin/rails, we accidentally
introduced a regression. If you install Rails 4 as a gem, then try to do
something in a Rails 3 application:
$ rails g
This will throw the 'please type rails new foo' message rather than the
proper generator documentation message. This is because older apps don't
have bin/rails.
Therefore, we now *prefer* bin/rails, but still search for script/rails,
and exec the one we find.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/array/conversions.rb')
0 files changed, 0 insertions, 0 deletions