diff --git a/kaminari-actionview/lib/kaminari/actionview.rb b/kaminari-actionview/lib/kaminari/actionview.rb index feda76a..5000ad8 100644 --- a/kaminari-actionview/lib/kaminari/actionview.rb +++ b/kaminari-actionview/lib/kaminari/actionview.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true require "kaminari/actionview/version" +require 'active_support/lazy_load_hooks' ActiveSupport.on_load :action_view do require 'kaminari/helpers/helper_methods' diff --git a/kaminari-activerecord/lib/kaminari/activerecord.rb b/kaminari-activerecord/lib/kaminari/activerecord.rb index 86a3513..8e54a1f 100644 --- a/kaminari-activerecord/lib/kaminari/activerecord.rb +++ b/kaminari-activerecord/lib/kaminari/activerecord.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true require "kaminari/activerecord/version" +require 'active_support/lazy_load_hooks' ActiveSupport.on_load :active_record do require 'kaminari/activerecord/active_record_extension'