mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Revert "An Engine can include app/helpers, so let's move the helpers there"
This reverts commit 2ed8adfe37
.
reason: Because mounted engines on the app doesn't search the main_app's helpers, then throws "undefined method `paginate'" in the views
This commit is contained in:
parent
3e1171ed0a
commit
6cbd2d5645
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +0,0 @@
|
|||
require 'kaminari/helpers/action_view_extension'
|
||||
|
||||
module KaminariHelper
|
||||
include Kaminari::ActionViewExtension
|
||||
end
|
|
@ -26,6 +26,7 @@ EOC
|
|||
|
||||
# load Kaminari components
|
||||
require 'kaminari/config'
|
||||
require 'kaminari/helpers/action_view_extension'
|
||||
require 'kaminari/helpers/paginator'
|
||||
require 'kaminari/models/page_scope_methods'
|
||||
require 'kaminari/models/configuration_methods'
|
||||
|
|
|
@ -28,6 +28,10 @@ module Kaminari
|
|||
::Plucky::Query.send :include, Kaminari::PluckyCriteriaMethods
|
||||
end
|
||||
require 'kaminari/models/array_extension'
|
||||
|
||||
ActiveSupport.on_load(:action_view) do
|
||||
::ActionView::Base.send :include, Kaminari::ActionViewExtension
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue