mongo_mapper-unstable 2010.1.12 → 2010.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mongo_mapper/plugins/associations/many_embedded_polymorphic_proxy.rb +1 -1
- data/lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb +1 -1
- data/lib/mongo_mapper.rb +4 -6
- data/test/functional/associations/test_many_embedded_polymorphic_proxy.rb +1 -0
- data/test/functional/associations/test_many_embedded_proxy.rb +2 -0
- data/test/unit/test_keys.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2010.01.
|
1
|
+
2010.01.17
|
data/lib/mongo_mapper.rb
CHANGED
@@ -100,12 +100,10 @@ module MongoMapper
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
require 'mongo_mapper/finder_options'
|
104
103
|
require 'mongo_mapper/support'
|
105
|
-
require 'mongo_mapper/
|
106
|
-
|
104
|
+
require 'mongo_mapper/finder_options'
|
107
105
|
require 'mongo_mapper/dynamic_finder'
|
108
|
-
require 'mongo_mapper/
|
106
|
+
require 'mongo_mapper/descendant_appends'
|
109
107
|
|
110
108
|
require 'mongo_mapper/plugins'
|
111
109
|
require 'mongo_mapper/plugins/associations'
|
@@ -123,5 +121,5 @@ require 'mongo_mapper/plugins/rails'
|
|
123
121
|
require 'mongo_mapper/plugins/serialization'
|
124
122
|
require 'mongo_mapper/plugins/validations'
|
125
123
|
|
126
|
-
require 'mongo_mapper/
|
127
|
-
require 'mongo_mapper/
|
124
|
+
require 'mongo_mapper/document'
|
125
|
+
require 'mongo_mapper/embedded_document'
|
@@ -49,7 +49,9 @@ class ManyEmbeddedProxyTest < Test::Unit::TestCase
|
|
49
49
|
post.reload
|
50
50
|
post.comments.size.should == 2
|
51
51
|
post.comments[0].should == frank
|
52
|
+
post.comments[0].new?.should == false
|
52
53
|
post.comments[1].should == bill
|
54
|
+
post.comments[1].new?.should == false
|
53
55
|
end
|
54
56
|
|
55
57
|
should "allow embedding arbitrarily deep" do
|
data/test/unit/test_keys.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_mapper-unstable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2010.1.
|
4
|
+
version: 2010.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-17 00:00:00 -05:00
|
13
13
|
default_executable: mmconsole
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|