Skip to content

Commit

Permalink
Revert "Rails 3.0.x fails to load helpers in Engines (?)"
Browse files Browse the repository at this point in the history
This reverts commit 00c912d.

reason: reverting back from app/helpers to ActionView::Base freedom-patch.
Because mounted engines on the app doesn't search the main_app's helpers, then throws "undefined method `paginate'" in the views
  • Loading branch information
amatsuda committed Nov 9, 2013
1 parent ecc4438 commit 3e1171e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/kaminari/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ def self.init
::MongoMapper::Document.send :include, Kaminari::MongoMapperExtension::Document
::Plucky::Query.send :include, Kaminari::PluckyCriteriaMethods
end

# Rails 3.0.x fails to load helpers in Engines (?)
if defined?(::ActionView) && ::ActionPack::VERSION::STRING < '3.1'
ActiveSupport.on_load(:action_view) do
require 'kaminari/helpers/action_view_extension'
::ActionView::Base.send :include, Kaminari::ActionViewExtension
end
end
require 'kaminari/models/array_extension'
end
end
Expand Down

0 comments on commit 3e1171e

Please sign in to comment.