Skip to content
Browse files

allow overriding the base uri based on the :uri symbol in the options…

… argument
  • Loading branch information...
1 parent 9e9caf7 commit bfca04ecdc3d6adc4d6466ccc0380cc4282a0249 @josegonzalez josegonzalez committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dm-pager/helpers/rails.rb
View
2 lib/dm-pager/helpers/rails.rb
@@ -10,7 +10,7 @@ module DataMapper::Pagination::Helpers::Rails
# :size Number of intermediate page number links to be shown; Defaults to 7
def paginate collection, options = {}
- uri = controller.url_for controller.params.merge(options[:params] || {})
+ uri = options[:uri] || controller.url_for(controller.params.merge(options[:params] || {}))
collection.pager.to_html uri, options
end

0 comments on commit bfca04e

Please sign in to comment.
Something went wrong with that request. Please try again.