Skip to content

Commit

Permalink
Merge pull request #33 from josegonzalez/master
Browse files Browse the repository at this point in the history
Updated paginate Helper for usage in Rails 3
  • Loading branch information
kyledrake committed Jul 21, 2011
2 parents 1eadaa3 + bfca04e commit a9d4225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dm-pager/helpers/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = @template.url_for @template.params.merge(options[:params] || {})
uri = options[:uri] || controller.url_for(controller.params.merge(options[:params] || {}))
collection.pager.to_html uri, options
end

Expand Down

0 comments on commit a9d4225

Please sign in to comment.