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: c8141eabe21755f5e75184d22da98d5368e6c165
4
- data.tar.gz: 18f6d50e0ed85de3aebb5e52a5cfe194b7c33fc2
3
+ metadata.gz: 6e9af41ada6b87c3d05e4d8a3e47ccebb28b2a3b
4
+ data.tar.gz: 4bf3d866adaf0a9fd07bdfc7bdb8b6a2e2e42857
5
5
  SHA512:
6
- metadata.gz: 8bd4c465bef83c4bfc3ad161a2095bc2908c08cb05db4638b0c9398355063b60a6a5dc7ecd7a5826a9ebe4553db42072396cc4fd8649d84bf9daabddb574558f
7
- data.tar.gz: 24bb795211e8ef9fb38728aea7c40560ac3b3ccbc3ec8029e4e4755f43dea633564b59a20b0b46bf60bc57aa82713ff371afc6c9dfe91eda7991d8952935a22f
6
+ metadata.gz: d43f7a046648b0a1dd8a26313cfeffc1d814653c31216c324521e8aab85ce981b58969c7a005f54b5c4fb88062ac63a592f7968c77aee93110da23878f43d617
7
+ data.tar.gz: 10ebe98f3b66530b26fcc85f8f279a58801d2454f3126a4de98d79c6bae2b646f7a8ad69356e0dd81cb917e5a69724ff13d70d040f2569d0514aef41ee90df8d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- calculated_attributes (0.0.22)
4
+ calculated_attributes (0.1.1)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- calculated_attributes (0.0.22)
4
+ calculated_attributes (0.1.1)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- calculated_attributes (0.0.22)
4
+ calculated_attributes (0.1.1)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CalculatedAttributes
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calculated_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Schneider