mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
An Engine can include app/helpers, so let's move the helpers there
however, leaving the original module as is for now, for Sinatra compatibility...
This commit is contained in:
parent
5390faa06f
commit
2ed8adfe37
3 changed files with 5 additions and 5 deletions
5
app/helpers/kaminari_helper.rb
Normal file
5
app/helpers/kaminari_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'kaminari/helpers/action_view_extension'
|
||||
|
||||
module KaminariHelper
|
||||
include Kaminari::ActionViewExtension
|
||||
end
|
|
@ -26,7 +26,6 @@ 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,10 +28,6 @@ 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