activefacts-api 1.9.8 → 1.9.9
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.
- checksums.yaml +4 -4
- data/lib/activefacts/api/constellation.rb +1 -2
- data/lib/activefacts/api/role.rb +3 -4
- data/lib/activefacts/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f86657355ff6c748b745dadd01508eb174992352
|
4
|
+
data.tar.gz: 874518fe95ea9674746018eb1e2d28fb12b92e2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 221ca6727dcfdde1389070a40aab5bc56133a51134ea346f82169bbe8239b9ae57c2bbc6c46cea22343107c1e4c0b64921957396707776b63f557a2c1192764b
|
7
|
+
data.tar.gz: b2f8b6dba4580ca1c9a3e7f15d6f8a7ffc20fdb197596b710aaaefbe132eaae12a865206d3490f9134cbdea2f47e94899b014a1c744f13f2606a2667a0afa18d
|
@@ -75,8 +75,7 @@ module ActiveFacts
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def define_class_accessor m, klass
|
78
|
-
(
|
79
|
-
send(:define_method, m) do |*args|
|
78
|
+
singleton_class.send(:define_method, m) do |*args|
|
80
79
|
if args.size == 0
|
81
80
|
# Return the collection of all instances of this class in the constellation:
|
82
81
|
instances[klass]
|
data/lib/activefacts/api/role.rb
CHANGED
@@ -86,10 +86,9 @@ module ActiveFacts
|
|
86
86
|
klass.class_eval do
|
87
87
|
role_accessor_name = "#{role.name}_role"
|
88
88
|
unless respond_to?(role_accessor_name)
|
89
|
-
(
|
90
|
-
|
91
|
-
|
92
|
-
end
|
89
|
+
singleton_class.send(:define_method, role_accessor_name) do
|
90
|
+
role
|
91
|
+
end
|
93
92
|
# else we can't create such a method without creating mayhem, so don't.
|
94
93
|
end
|
95
94
|
end
|