mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Revert "Rails 3.0.x fails to load helpers in Engines (?)"
This reverts commit 00c912d12b
.
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
This commit is contained in:
parent
e8cab2d34a
commit
ab3001fc41
1 changed files with 0 additions and 8 deletions
|
@ -27,14 +27,6 @@ module Kaminari
|
|||
::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
|
||||
|
|
Loading…
Add table
Reference in a new issue