Skip to content

Commit

Permalink
An Engine can include app/helpers, so let's move the helpers there
Browse files Browse the repository at this point in the history
however, leaving the original module as is for now, for Sinatra compatibility...
  • Loading branch information
amatsuda committed Jul 19, 2013
1 parent 5390faa commit 2ed8adf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/helpers/kaminari_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'kaminari/helpers/action_view_extension'

module KaminariHelper
include Kaminari::ActionViewExtension
end
1 change: 0 additions & 1 deletion lib/kaminari.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module Kaminari

# 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'
Expand Down
4 changes: 0 additions & 4 deletions lib/kaminari/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ def self.init
::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

0 comments on commit 2ed8adf

Please sign in to comment.