aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-05-29 23:43:46 +0900
committerkennyj <kennyj@gmail.com>2012-05-30 00:27:38 +0900
commitcc7dd66c68cb948424f3b64492b0ceeb3e55f66f (patch)
treeed6a74c501de64fca6bc611a4e03afc7aadfce68 /activerecord/lib
parentf8e7904dc0d6e54b9afe12acf127ae20952d8a76 (diff)
downloadrails-cc7dd66c68cb948424f3b64492b0ceeb3e55f66f.tar.gz
rails-cc7dd66c68cb948424f3b64492b0ceeb3e55f66f.tar.bz2
rails-cc7dd66c68cb948424f3b64492b0ceeb3e55f66f.zip
Use runner hook to load ActiveRecord::Base.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/railtie.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb
index eb2769f1ef..3091197bc2 100644
--- a/activerecord/lib/active_record/railtie.rb
+++ b/activerecord/lib/active_record/railtie.rb
@@ -42,6 +42,10 @@ module ActiveRecord
Rails.logger.extend ActiveSupport::Logger.broadcast console
end
+ runner do |app|
+ require "active_record/base"
+ end
+
initializer "active_record.initialize_timezone" do
ActiveSupport.on_load(:active_record) do
self.time_zone_aware_attributes = true