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

ActionView 7.0 compat

when '/' suffixed views_prefix is given in Rails 7.0, kaminari fails to find the partial and raises
ActionView::MissingTemplate: Missing partial alternative//kaminari/_paginator
This commit is contained in:
Akira Matsuda 2021-12-20 01:04:54 +09:00
parent 8e1e2c45ce
commit 359eea9cc8

View file

@ -66,7 +66,7 @@ module Kaminari
"kaminari",
@theme,
self.class.name.demodulize.underscore
].compact.join("/")
].compact.join("/").gsub('//', '/')
end
end