diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 22:17:10 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-22 22:17:10 +0000 |
commit | 4cf23c9f8e78cea6c29ba083d9bc3fa5d4d2e32a (patch) | |
tree | 8291cf17233128f56f4f1315fa08e65f5766dcc6 | |
parent | 833bd62e20cf60ece5cc761300463f163ff2da58 (diff) | |
download | rails-4cf23c9f8e78cea6c29ba083d9bc3fa5d4d2e32a.tar.gz rails-4cf23c9f8e78cea6c29ba083d9bc3fa5d4d2e32a.tar.bz2 rails-4cf23c9f8e78cea6c29ba083d9bc3fa5d4d2e32a.zip |
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
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/commands/console.rb | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 09a5e9fb2f..cb606f5b4d 100644 --- a/railties/CHANGELOG +++ b/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] diff --git a/railties/lib/commands/console.rb b/railties/lib/commands/console.rb index b83a33f9eb..edb135ff40 100644 --- a/railties/lib/commands/console.rb +++ b/railties/lib/commands/console.rb @@ -24,9 +24,9 @@ ENV['RAILS_ENV'] = case ARGV.first 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" |