mongoid-autoinc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autoinc.rb +5 -1
- data/lib/autoinc/version.rb +4 -2
- metadata +4 -2
data/lib/autoinc.rb
CHANGED
@@ -15,7 +15,11 @@ module Mongoid
|
|
15
15
|
module ClassMethods
|
16
16
|
|
17
17
|
def incrementing_fields
|
18
|
-
|
18
|
+
if superclass.respond_to?(:incrementing_fields)
|
19
|
+
@incrementing_fields ||= superclass.incrementing_fields.dup
|
20
|
+
else
|
21
|
+
@incrementing_fields ||= {}
|
22
|
+
end
|
19
23
|
end
|
20
24
|
|
21
25
|
def increments(field, options={})
|
data/lib/autoinc/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-autoinc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Robert Beekman
|
9
9
|
- Steven Weller
|
10
|
+
- Jacob Vosmaer
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2012-
|
14
|
+
date: 2012-09-20 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: mongoid
|
@@ -96,6 +97,7 @@ description: Think auto incrementing field from MySQL for mongoid.
|
|
96
97
|
email:
|
97
98
|
- robert@80beans.com
|
98
99
|
- steven@80beans.com
|
100
|
+
- jacob@80beans.com
|
99
101
|
executables: []
|
100
102
|
extensions: []
|
101
103
|
extra_rdoc_files: []
|