diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-22 20:44:29 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-22 20:44:38 +0100 |
commit | c8cc8a987213bf90fe6922517d52befb7c0587a8 (patch) | |
tree | 55a434ec6ee336f97dc7e9e27c18d9c27d755d62 /activerecord/lib | |
parent | 4ae79367277954bf6616151b03cbe0660808f9bd (diff) | |
download | rails-c8cc8a987213bf90fe6922517d52befb7c0587a8.tar.gz rails-c8cc8a987213bf90fe6922517d52befb7c0587a8.tar.bz2 rails-c8cc8a987213bf90fe6922517d52befb7c0587a8.zip |
Moved more configuration away from bootstrap.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index bc06333f1c..d5ec776b34 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -18,6 +18,11 @@ module ActiveRecord require "active_record/railties/subscriber" subscriber ActiveRecord::Railties::Subscriber.new + initializer "active_record.initialize_timezone" do + ActiveRecord::Base.time_zone_aware_attributes = true + ActiveRecord::Base.default_timezone = :utc + end + initializer "active_record.set_configs" do |app| app.config.active_record.each do |k,v| ActiveRecord::Base.send "#{k}=", v @@ -31,11 +36,6 @@ module ActiveRecord ActiveRecord::Base.establish_connection end - initializer "active_record.initialize_timezone" do - ActiveRecord::Base.time_zone_aware_attributes = true - ActiveRecord::Base.default_timezone = :utc - end - # Expose database runtime to controller for logging. initializer "active_record.log_runtime" do |app| require "active_record/railties/controller_runtime" |