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.
- data/README.rdoc +1 -2
- data/VERSION +1 -1
- data/acts_as_ordinalized.gemspec +2 -2
- data/lib/acts_as_ordinalized.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -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.
|
1
|
+
0.2.5
|
data/acts_as_ordinalized.gemspec
CHANGED
@@ -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.
|
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{
|
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 = [
|
data/lib/acts_as_ordinalized.rb
CHANGED
@@ -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
|
-
|
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
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:
|
18
|
+
date: 2011-01-05 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|