denormalize_mm 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ module MongoMapper::Denormalization
48
48
  klass = self.associations[association].klass
49
49
 
50
50
  collection_name = self.collection_name
51
- reverse_denormalization_method_name = "denormalize_#{collection_name}_#{association}_#{field}"
51
+ reverse_denormalization_method_name = "_denormalize__#{collection_name}__#{association}__#{field}".gsub(/[^A-Za-z0-9_]/, '_')
52
52
 
53
53
  klass.class_eval(<<-CODE, __FILE__, __LINE__)
54
54
  after_update :#{reverse_denormalization_method_name}
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.1
4
+ version: 0.2.2
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-09-18 00:00:00.000000000 Z
13
+ date: 2014-09-26 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