mislav-will_paginate 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +4 -0
- data/lib/will_paginate/finder.rb +2 -2
- metadata +4 -12
data/CHANGELOG.rdoc
CHANGED
data/lib/will_paginate/finder.rb
CHANGED
|
@@ -222,9 +222,9 @@ module WillPaginate
|
|
|
222
222
|
# scope_out adds a 'with_finder' method which acts like with_scope, if it's present
|
|
223
223
|
# then execute the count with the scoping provided by the with_finder
|
|
224
224
|
send(scoper, &counter)
|
|
225
|
-
elsif
|
|
225
|
+
elsif finder =~ /^find_(all_by|by)_([_a-zA-Z]\w*)$/
|
|
226
226
|
# extract conditions from calls like "paginate_by_foo_and_bar"
|
|
227
|
-
attribute_names =
|
|
227
|
+
attribute_names = $2.split('_and_')
|
|
228
228
|
conditions = construct_attributes_from_arguments(attribute_names, args)
|
|
229
229
|
with_scope(:find => { :conditions => conditions }, &counter)
|
|
230
230
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mislav-will_paginate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Mislav Marohni\xC4\x87"
|
|
@@ -10,18 +10,10 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2008-10-
|
|
13
|
+
date: 2008-10-26 00:00:00 -07:00
|
|
14
14
|
default_executable:
|
|
15
|
-
dependencies:
|
|
16
|
-
|
|
17
|
-
name: activesupport
|
|
18
|
-
version_requirement:
|
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
-
requirements:
|
|
21
|
-
- - ">="
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
23
|
-
version: 1.4.4
|
|
24
|
-
version:
|
|
15
|
+
dependencies: []
|
|
16
|
+
|
|
25
17
|
description: The will_paginate library provides a simple, yet powerful and extensible API for ActiveRecord pagination and rendering of pagination links in ActionView templates.
|
|
26
18
|
email: mislav.marohnic@gmail.com
|
|
27
19
|
executables: []
|