mongo_mysql_relations 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ module MongoMysqlRelations
|
|
26
26
|
self.instance_variable_get("@#{name}")
|
27
27
|
end
|
28
28
|
|
29
|
-
define_method("#{name}=
|
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}=
|
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
|
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
|
+
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-
|
12
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|