dm-pager 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +5 -0
- data/dm-pager.gemspec +2 -2
- data/lib/dm-pager/pagination.rb +1 -1
- data/lib/dm-pager/version.rb +1 -1
- metadata +2 -2
data/History.md
CHANGED
data/dm-pager.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{dm-pager}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["TJ Holowaychuk"]
|
9
|
-
s.date = %q{2009-12-
|
9
|
+
s.date = %q{2009-12-19}
|
10
10
|
s.description = %q{DataMapper Pagination}
|
11
11
|
s.email = %q{tj@vision-media.ca}
|
12
12
|
s.extra_rdoc_files = ["lib/dm-pager.rb", "lib/dm-pager/defaults.rb", "lib/dm-pager/helpers.rb", "lib/dm-pager/helpers/rails.rb", "lib/dm-pager/pager.rb", "lib/dm-pager/pagination.rb", "lib/dm-pager/version.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
|
data/lib/dm-pager/pagination.rb
CHANGED
@@ -40,7 +40,7 @@ module DataMapper
|
|
40
40
|
:offset => (page - 1) * per_page,
|
41
41
|
:order => [:id.desc]
|
42
42
|
}.merge(query))
|
43
|
-
|
43
|
+
query.delete :order
|
44
44
|
options.merge! :total => count(query), :page => page
|
45
45
|
collection.pager = DataMapper::Pager.new options
|
46
46
|
collection
|
data/lib/dm-pager/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-pager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-19 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|