mislav-will_paginate 2.3.5 → 2.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 2.3.6, released 2008-10-26
2
+
3
+ * Rails 2.2 fix: stop using `extract_attribute_names_from_match` inernal AR method, it no longer exists
4
+
1
5
  == 2.3.5, released 2008-10-07
2
6
 
3
7
  * update the backported named_scope implementation for Rails versions older than 2.1
@@ -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 match = /^find_(all_by|by)_([_a-zA-Z]\w*)$/.match(finder)
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 = extract_attribute_names_from_match(match)
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.5
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-07 00:00:00 -07:00
13
+ date: 2008-10-26 00:00:00 -07:00
14
14
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
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: []