1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH]

This commit is contained in:
David Heinemeier Hansson 2011-03-31 14:33:24 -07:00
parent 6eff04499e
commit caf0a72c85
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,7 @@
*Rails 3.1.0 (unreleased)*
* Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH]
* Added `config.force_ssl` configuration which loads Rack::SSL middleware and force all requests to be under HTTPS protocol [DHH, Prem Sichanugrist, and Josh Peek]
* Added `rails plugin new` command which generates rails plugin with gemspec, tests and dummy application for testing [Piotr Sarnacki]

View file

@ -34,6 +34,10 @@ module Rails
exit
end
end
if defined?(ActiveRecord)
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
if options[:sandbox]
puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})"