Skip to content

Commit

Permalink
Merge pull request #2786 from ordinaryzelig/active_record_lazy_load
Browse files Browse the repository at this point in the history
Use ActiveSupport.on_load to correctly re-open ActiveRecord::Base.
  • Loading branch information
mshibuya authored Dec 3, 2016
2 parents 482b5ac + 2caa735 commit cda8175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/active_record_extensions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if defined?(::ActiveRecord)
ActiveSupport.on_load(:active_record) do
module ActiveRecord
class Base
def self.rails_admin(&block)
Expand Down

0 comments on commit cda8175

Please # to comment.