1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Explicitly require AS/lazy_load_hooks where using it

This commit is contained in:
Akira Matsuda 2016-11-30 11:17:13 +09:00
parent 997d9a6349
commit 1ee0a1123f
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
require "kaminari/actionview/version" require "kaminari/actionview/version"
require 'active_support/lazy_load_hooks'
ActiveSupport.on_load :action_view do ActiveSupport.on_load :action_view do
require 'kaminari/helpers/helper_methods' require 'kaminari/helpers/helper_methods'

View file

@ -1,5 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
require "kaminari/activerecord/version" require "kaminari/activerecord/version"
require 'active_support/lazy_load_hooks'
ActiveSupport.on_load :active_record do ActiveSupport.on_load :active_record do
require 'kaminari/activerecord/active_record_extension' require 'kaminari/activerecord/active_record_extension'