Permalink
Browse files

Only load part of ActiveModel that's required

  • Loading branch information...
ankane committed Oct 22, 2018
1 parent fe07438 commit ebbe506864a783e1922c6fa19814811c40ca5657
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/searchkick.rb
@@ -1,4 +1,4 @@
require "active_model"
require "active_support"
require "active_support/core_ext/hash/deep_merge"
require "elasticsearch"
require "hashie"
@@ -228,6 +228,7 @@ def self.signer_middleware_aws_params
end
# TODO find better ActiveModel hook
require "active_model/callbacks"
ActiveModel::Callbacks.include(Searchkick::Model)
ActiveSupport.on_load(:active_record) do

0 comments on commit ebbe506

Please sign in to comment.