mongodb-mongo_record 0.4 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mongo_record/base.rb +3 -3
- data/mongo-activerecord-ruby.gemspec +2 -2
- metadata +2 -2
data/lib/mongo_record/base.rb
CHANGED
@@ -846,9 +846,9 @@ module MongoRecord
|
|
846
846
|
create_date = self.instance_variable_defined?("@created_at") ? self.created_at : nil
|
847
847
|
set_create_times(create_date)
|
848
848
|
@_ns = self.class.collection.name
|
849
|
-
|
850
|
-
@_id =
|
851
|
-
|
849
|
+
value = to_mongo_value
|
850
|
+
@_id = self.class.collection.insert(value)
|
851
|
+
value.merge(:_id => @_id)
|
852
852
|
end
|
853
853
|
|
854
854
|
# Save self to the database. Return +false+ if there was an error,
|
@@ -1,11 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'mongo_record'
|
3
|
-
s.version = '0.4'
|
3
|
+
s.version = '0.4.1'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.summary = 'ActiveRecord-like models for the 10gen Mongo DB'
|
6
6
|
s.description = 'MongoRecord is an ActiveRecord-like framework for the 10gen Mongo database. For more information about Mongo, see http://www.mongodb.org.'
|
7
7
|
|
8
|
-
s.add_dependency('mongodb-mongo', ['>= 0.
|
8
|
+
s.add_dependency('mongodb-mongo', ['>= 0.10'])
|
9
9
|
|
10
10
|
s.require_paths = ['lib']
|
11
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongodb-mongo_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Menard
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0.
|
24
|
+
version: "0.10"
|
25
25
|
version:
|
26
26
|
description: MongoRecord is an ActiveRecord-like framework for the 10gen Mongo database. For more information about Mongo, see http://www.mongodb.org.
|
27
27
|
email: mongodb-user@googlegroups.com
|