calculated_attributes 0.1.0 → 0.1.1
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: 6e9af41ada6b87c3d05e4d8a3e47ccebb28b2a3b
|
4
|
+
data.tar.gz: 4bf3d866adaf0a9fd07bdfc7bdb8b6a2e2e42857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d43f7a046648b0a1dd8a26313cfeffc1d814653c31216c324521e8aab85ce981b58969c7a005f54b5c4fb88062ac63a592f7968c77aee93110da23878f43d617
|
7
|
+
data.tar.gz: 10ebe98f3b66530b26fcc85f8f279a58801d2454f3126a4de98d79c6bae2b646f7a8ad69356e0dd81cb917e5a69724ff13d70d040f2569d0514aef41ee90df8d
|
@@ -52,7 +52,7 @@ module ActiveRecord
|
|
52
52
|
message_bus.instrument('instantiation.active_record', payload) do
|
53
53
|
result_set.each do |row_hash|
|
54
54
|
parent = parents[row_hash[primary_key]] ||= join_root.instantiate(row_hash, column_aliases)
|
55
|
-
@calculated_columns.each { |column| parent[column.right] = model[column.right] }
|
55
|
+
@calculated_columns.each { |column| parent[column.right] = model[column.right] } if @calculated_columns
|
56
56
|
construct(parent, join_root, row_hash, result_set, seen, model_cache, aliases)
|
57
57
|
end
|
58
58
|
end
|