RubyGems
npm
Organizations
Log in
Sign up
RubyGems
mongomapper_plugins
Versions diffs
0.0.5 → 0.0.6
mongomapper_plugins 0.0.5 → 0.0.6
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/mongo_mapper/plugins/auto_increment_id.rb
+1
-1
metadata
+1
-1
data/lib/mongo_mapper/plugins/auto_increment_id.rb
CHANGED
Viewed
@@ -5,7 +5,7 @@ module MongoMapper
5
5
def auto_increment_id
6
6
key :_id, Integer
7
7
8
-
after_create
:generate_document_id
8
+
before_create
:generate_document_id
9
9
end
10
10
end
11
11
metadata
CHANGED
Viewed
@@ -2,7 +2,7 @@
2
2
name: mongomapper_plugins
3
3
version: !ruby/object:Gem::Version
4
4
prerelease:
5
-
version: 0.0.
5
5
+
version: 0.0.
6
6
6
platform: ruby
7
7
authors:
8
8
- Andrew Timberlake