acts_as_ordinalized 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,11 +24,10 @@ This is a simple acts_as gem providing the active record models with ordinal num
24
24
  * works with sphinx
25
25
 
26
26
  class OrdinalizedWithSphinx < ActiveRecord::Base
27
+ acts_as_ordinalized :wrapped_methods => :search
27
28
  define_index do
28
29
  ...
29
30
  end
30
- # must be declared after indexes (the wrapped method must be defined before acts_as_ordinalized is used)
31
- acts_as_ordinalized :wrapped_methods => :search
32
31
  end
33
32
 
34
33
  sphinx_collection = OrdinalizedWithSphinx.search
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_ordinalized}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mandaryn"]
12
- s.date = %q{2010-08-19}
12
+ s.date = %q{2011-01-05}
13
13
  s.description = %q{This is a simple acts_as gem providing the active record models with ordinal numbers. The ordinals numbering is per query, but should work nicely with will paginate showing correct ordinal numbers on paginated results.}
14
14
  s.email = %q{mandaryyyn@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -48,7 +48,7 @@ ActiveRecord::Base.class_eval { include ActsAsOrdinalized }
48
48
 
49
49
  #fix for will_paginate association collection with pagination
50
50
  a = ActiveRecord::Associations
51
- returning([ a::AssociationCollection ]) { |classes|
51
+ [ a::AssociationCollection ].tap { |classes|
52
52
  # detect http://dev.rubyonrails.org/changeset/9230
53
53
  unless a::HasManyThroughAssociation.superclass == a::HasManyAssociation
54
54
  classes << a::HasManyThroughAssociation
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_ordinalized
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - mandaryn
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-19 00:00:00 +02:00
18
+ date: 2011-01-05 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency