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:
parent
6eff04499e
commit
caf0a72c85
2 changed files with 6 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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})"
|
||||
|
|
Loading…
Reference in a new issue