Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use runner hook to load ActiveRecord::Base.

  • Loading branch information...
commit cc7dd66c68cb948424f3b64492b0ceeb3e55f66f 1 parent f8e7904
Toshinori Kajihara authored May 29, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  activerecord/lib/active_record/railtie.rb
4  activerecord/lib/active_record/railtie.rb
@@ -42,6 +42,10 @@ class Railtie < Rails::Railtie
42 42
       Rails.logger.extend ActiveSupport::Logger.broadcast console
43 43
     end
44 44
 
  45
+    runner do |app|
  46
+      require "active_record/base"
  47
+    end
  48
+
45 49
     initializer "active_record.initialize_timezone" do
46 50
       ActiveSupport.on_load(:active_record) do
47 51
         self.time_zone_aware_attributes = true

0 notes on commit cc7dd66

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