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

Use runner hook to load ActiveRecord::Base.

This commit is contained in:
kennyj 2012-05-29 23:43:46 +09:00
parent f8e7904dc0
commit cc7dd66c68

View file

@ -42,6 +42,10 @@ module ActiveRecord
Rails.logger.extend ActiveSupport::Logger.broadcast console Rails.logger.extend ActiveSupport::Logger.broadcast console
end end
runner do |app|
require "active_record/base"
end
initializer "active_record.initialize_timezone" do initializer "active_record.initialize_timezone" do
ActiveSupport.on_load(:active_record) do ActiveSupport.on_load(:active_record) do
self.time_zone_aware_attributes = true self.time_zone_aware_attributes = true