mm_partial_update 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,12 @@ module MongoMapper
|
|
35
35
|
def make_persistable
|
36
36
|
class << self; include MmPartialUpdate::OneEmbeddedProxy; end unless persistable?
|
37
37
|
end
|
38
|
+
end
|
38
39
|
|
40
|
+
class ManyDocumentsProxy
|
41
|
+
def save_to_collection(options={})
|
42
|
+
@target.each { |doc| doc.save_changes(options) if doc.changed? } if @target
|
43
|
+
end
|
39
44
|
end
|
40
45
|
|
41
46
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm_partial_update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Stults
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-08 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|