apotonick / kaminari-cells

Kaminari pagination in Cells.
MIT License
23 stars 15 forks source link

Move require of kaminari/cells into ActionView load hook #13

Closed richardboehme closed 2 years ago

richardboehme commented 2 years ago

Previously when eager loading a rails application using zeitwerk, the Kaminari::Helpers::CellsHelper module was included before it was defined by the load hook.

Example:

rails zeitwerk:check
Hold on, I am eager loading the application.
rails aborted!
NameError: uninitialized constant Kaminari::Helpers::CellsHelper

I'm not sure if this is a proper solution to this problem.

apotonick commented 2 years ago

Ingenious! :beers: