Merge pull request #518 from opf/fix/pagination_controller_method_removal

fixes removal of outdated controller action upon redefinition of pagination action
pull/551/merge
sschu 11 years ago
commit aed131dd89
  1. 2
      lib/pagination/controller.rb

@ -142,7 +142,7 @@ module Pagination::Controller
controller.pagination.delete(last_action)
# remove old
controller.send(:remove_method, last_action) if controller.respond_to? :last_action
controller.send(:remove_method, last_action) if controller.respond_to? last_action
end
def define_action!(block = default_block)

Loading…
Cancel
Save