calculated_attributes 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5d1e1c6a85809abd342ec35a184d0ae2f7a18d2
|
4
|
+
data.tar.gz: f294bd5a311c92f6c4b14d6b4ed532c5a13117c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72d6a5a63cdb53272e9d3cab73945fb91b3d23a7bc09ac5588195d0351bb3f4d77d4d93645dcba01f7d44657a6717acfae266c57762269edb118bd16e4f6fd88
|
7
|
+
data.tar.gz: 1e4e6d4ab5b312e99c7ec28df1f8710fb08b8521aa7ccda3aa312c99b2e6344626a58261c1bb9be09efea51be60c62ca89719852beda27945a832d0b79de70f9
|
@@ -58,8 +58,10 @@ ActiveRecord::Base.send(:include, Module.new do
|
|
58
58
|
no_sym_in_attr =
|
59
59
|
if @attributes.respond_to? :include?
|
60
60
|
!@attributes.include?(method.to_s)
|
61
|
-
|
61
|
+
elsif @attributes.respond_to? :key?
|
62
62
|
!@attributes.key?(method.to_s)
|
63
|
+
else
|
64
|
+
true
|
63
65
|
end
|
64
66
|
super || (no_sym_in_attr && (self.class.calculated.calculated[method] || self.class.base_class.calculated.calculated[method]))
|
65
67
|
end
|