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:
parent
f8e7904dc0
commit
cc7dd66c68
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue