diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-25 01:37:55 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-25 01:37:55 +0200 |
commit | 52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8 (patch) | |
tree | 1c74d37b78b4af1c5b43df667ea5176ff60256ec /activerecord | |
parent | 76cebf2e5364fd929f60379be636f525c6473dcc (diff) | |
download | rails-52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8.tar.gz rails-52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8.tar.bz2 rails-52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8.zip |
Everyone receives app as argument for consistency.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index bae2ded244..47133e77e8 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -29,8 +29,8 @@ module ActiveRecord # When loading console, force ActiveRecord::Base to be loaded # to avoid cross references when loading a constant for the # first time. Also, make it output to STDERR. - console do |sandbox| - require "active_record/railties/console_sandbox" if sandbox + console do |app| + require "active_record/railties/console_sandbox" if app.sandbox? ActiveRecord::Base.logger = Logger.new(STDERR) end |