Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Actually Fixes PostgresError (typo)

  • Loading branch information...
commit bc07a517884fbcf12c9bef0478f4f027f8ab41ef 1 parent 87cb5d8
@tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dm-pager/pagination.rb
View
2  lib/dm-pager/pagination.rb
@@ -40,7 +40,7 @@ def page page = nil, options = {}
:offset => (page - 1) * per_page,
:order => [:id.desc]
}.merge(query))
- options.delete :order
+ query.delete :order
options.merge! :total => count(query), :page => page
collection.pager = DataMapper::Pager.new options
collection
Please sign in to comment.
Something went wrong with that request. Please try again.