diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-03-29 20:22:26 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-03-29 20:22:26 -0300 |
commit | 6b532830519e76d9e7b7205e9980e399bd49008c (patch) | |
tree | 9a53bf724bd9f93cc864fd9ed27e1dc022aa02f7 /railties/lib | |
parent | 77d9a8e3da27e61cb648837fb870863a391f0d31 (diff) | |
parent | 9a3ba6cd8b095c35b2033dc14e87510e91019125 (diff) | |
download | rails-6b532830519e76d9e7b7205e9980e399bd49008c.tar.gz rails-6b532830519e76d9e7b7205e9980e399bd49008c.tar.bz2 rails-6b532830519e76d9e7b7205e9980e399bd49008c.zip |
Merge pull request #19581 from kirs/bin-deprecation-version
Replace `in Rails 4` with `in Rails %version%` in deprecation message
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/app_rails_loader.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/app_rails_loader.rb b/railties/lib/rails/app_rails_loader.rb index 39d8007333..9a7c6c5f2d 100644 --- a/railties/lib/rails/app_rails_loader.rb +++ b/railties/lib/rails/app_rails_loader.rb @@ -1,4 +1,5 @@ require 'pathname' +require 'rails/version' module Rails module AppRailsLoader @@ -9,7 +10,7 @@ module Rails BUNDLER_WARNING = <<EOS Looks like your app's ./bin/rails is a stub that was generated by Bundler. -In Rails 4, your app's bin/ directory contains executables that are versioned +In Rails #{Rails::VERSION::MAJOR}, your app's bin/ directory contains executables that are versioned like any other source code, rather than stubs that are generated on demand. Here's how to upgrade: |