1
0
Fork 0
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:
Akira Matsuda 2013-07-19 11:55:01 +09:00
parent 5390faa06f
commit 2ed8adfe37
3 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,5 @@
require 'kaminari/helpers/action_view_extension'
module KaminariHelper
include Kaminari::ActionViewExtension
end

View file

@ -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'

View file

@ -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