denormalize_mm 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,8 @@ module MongoMapper::Denormalization
54
54
  after_update :#{reverse_denormalization_method_name}
55
55
 
56
56
  def #{reverse_denormalization_method_name}
57
+ return true unless self.respond_to?(:#{field}) && self.respond_to?(:#{field}_changed?)
58
+
57
59
  if self.#{field}_changed?
58
60
  db = MongoMapper.database
59
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: denormalize_mm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-06-24 00:00:00.000000000 Z
13
+ date: 2014-09-18 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Helpers to denormalize fields easily on mongo mapper models
16
16
  email: scott@railsnewbie.com