mongo_mysql_relations 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ module MongoMysqlRelations
26
26
  self.instance_variable_get("@#{name}")
27
27
  end
28
28
 
29
- define_method("#{name}=(new_instance)") do
29
+ define_method("#{name}=") do |new_instance|
30
30
  self.send("#{name}_id=", new_instance.id)
31
31
  self.instance_variable_set("@#{name}", nil)
32
32
  end
@@ -88,7 +88,7 @@ module MongoMysqlRelations
88
88
  self.instance_variable_get("@#{name}")
89
89
  end
90
90
 
91
- define_method("#{name}=(new_instance)") do
91
+ define_method("#{name}=") do |new_instance|
92
92
  self.send("#{name}_id=", new_instance.id)
93
93
  self.instance_variable_set("@#{name}", nil)
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module MongoMysqlRelations
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_mysql_relations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-30 00:00:00.000000000 Z
12
+ date: 2013-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler