mm_partial_update 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,6 +42,12 @@ module MmPartialUpdate
42
42
  #assert_root_saved
43
43
  update_command = prepare_update_command
44
44
  execute_command(update_command, options)
45
+ #callbacks and changes_only are not valid
46
+ # options for regular MongoMapper saves.
47
+ # clear_changes_to_subtree will pass this options
48
+ # hash to downstream saves, which can errors
49
+ # so they need to be removed
50
+ options.reject!{ |k,v|[:callbacks, :changes_only].include?(k)}
45
51
  clear_changes_to_subtree(options)
46
52
  end
47
53
 
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module MmPartialUpdate
3
- Version = '0.1.3'
3
+ Version = '0.1.4'
4
4
  end
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
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-01 00:00:00 -08:00
18
+ date: 2010-12-03 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency