Skip to content
Browse files

Use runner hook to load ActiveRecord::Base.

  • Loading branch information...
1 parent f8e7904 commit cc7dd66c68cb948424f3b64492b0ceeb3e55f66f @kennyj kennyj committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/lib/active_record/railtie.rb
View
4 activerecord/lib/active_record/railtie.rb
@@ -42,6 +42,10 @@ class Railtie < Rails::Railtie
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

0 comments on commit cc7dd66

Please sign in to comment.
Something went wrong with that request. Please try again.