diff options
author | Kir Shatrov <shatrov@me.com> | 2015-03-29 23:10:48 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2015-03-29 23:59:15 +0300 |
commit | 9a3ba6cd8b095c35b2033dc14e87510e91019125 (patch) | |
tree | e784ef04d9788dde4990e849c7c5f08aa469955f /railties | |
parent | 445c12f7dfa345b86e05dc610d665f9afde14c26 (diff) | |
download | rails-9a3ba6cd8b095c35b2033dc14e87510e91019125.tar.gz rails-9a3ba6cd8b095c35b2033dc14e87510e91019125.tar.bz2 rails-9a3ba6cd8b095c35b2033dc14e87510e91019125.zip |
Replace `in Rails 4` with `in Rails %version%` in deprecation message
Diffstat (limited to 'railties')
-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: |