Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Print Rails version when starting console (closes #7440) [eyematz]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 4cf23c9f8e78cea6c29ba083d9bc3fa5d4d2e32a 1 parent 833bd62
@dhh dhh authored
Showing with 5 additions and 3 deletions.
  1. +2 −0  railties/CHANGELOG
  2. +3 −3 railties/lib/commands/console.rb
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Print Rails version when starting console #7440 [eyematz]
+
* Added rake db:version to get the current schema version from the command line #7521 [pelargir]
* Fixed the placement of fixture files for nested models when generating through script/generate model #7547 [jkit]
View
6 railties/lib/commands/console.rb
@@ -24,9 +24,9 @@
end
if options[:sandbox]
- puts "Loading #{ENV['RAILS_ENV']} environment in sandbox."
- puts "Any modifications you make will be rolled back on exit."
+ puts "Loading #{ENV['RAILS_ENV']} environment in sandbox (Rails #{Rails::VERSION::STRING})"
+ puts "Any modifications you make will be rolled back on exit"
else
- puts "Loading #{ENV['RAILS_ENV']} environment."
+ puts "Loading #{ENV['RAILS_ENV']} environment (Rails #{Rails::VERSION::STRING})"
end
exec "#{options[:irb]} #{libs} --simple-prompt"
Please sign in to comment.
Something went wrong with that request. Please try again.