activerecord-bixformer 0.4.9 → 0.4.10
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3db69e1e687cb737ae1a261d797265032643d595
|
|
4
|
+
data.tar.gz: 3d5fda5071c5cce61a59b414e0c6ce57b0b6fd50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a71ced71a841db66584996b40b32c5dcf5d0eea111975ce93de8db701c54ea8b5efa8fb45b586bf4bb0d0076b5de1128437a29ef0ddd2fb3707a5de8bfe736f
|
|
7
|
+
data.tar.gz: ef835276b2d227c9008df48d9a32bf55c46110d3b9b24188ef5fb17c49b079fa3ef51d3ff8dbec2632c32eb5b121768a3ab25ba5dffd3b56ee1bb38c027ac625
|
|
@@ -87,6 +87,20 @@ module ActiveRecord
|
|
|
87
87
|
arr = []
|
|
88
88
|
hash = {}
|
|
89
89
|
|
|
90
|
+
@attributes.each do |attr|
|
|
91
|
+
attr_should_be_included = attr.should_be_included
|
|
92
|
+
|
|
93
|
+
next unless attr_should_be_included
|
|
94
|
+
|
|
95
|
+
if attr_should_be_included.is_a?(::Hash)
|
|
96
|
+
hash.merge!(attr_should_be_included)
|
|
97
|
+
elsif attr_should_be_included.is_a?(::Array)
|
|
98
|
+
arr.push *attr_should_be_included
|
|
99
|
+
else
|
|
100
|
+
arr.push attr_should_be_included
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
90
104
|
@associations.each do |assoc|
|
|
91
105
|
assoc_should_be_included = assoc.should_be_included
|
|
92
106
|
|