brick 1.0.147 → 1.0.148

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
  SHA256:
3
- metadata.gz: dd317a5512ce3e16edf252482ace8bfbc481b7c47abec2ef6b760ef6100d0f60
4
- data.tar.gz: 804edb51a7b6d88794bd573a0af046dfc51fffedec85238ac2c88d010be648fb
3
+ metadata.gz: 66301eacecd8c8f5dc5587f234ce373673a9d8544dad12e6ae27e0b1a99bed40
4
+ data.tar.gz: 226f44c9814fe1b47db39be49a3c35f499dd8795197523f74e8072de641d4cdd
5
5
  SHA512:
6
- metadata.gz: 46b3b122f5a7ff7edfc41b24748e980dc9bea92241d934a5fc9de7a34fe1182058ab7c8d7b90d65329d1d183eec6fd6bf195764aa90f9e32602c46fa2f219d31
7
- data.tar.gz: 41cdd93b08c7cc4f26bceb2a1864a7233f54ce070576738433870185ed4c23b9803f82edc3ba9b4c63eb4ed3888853adeeeba64b2772f86939715d0b4977e5bb
6
+ metadata.gz: ab20a8565d71699db3bb960dc82e8091072be169011f62beb505527e5946f406fde89dab610d26717d3be118fab0ee7daf38c774c6f0a92f9d655f54cba3d0d5
7
+ data.tar.gz: 2b2f29c67712b001bfe43a03b881eec48eee7cf73686fe54da8e4aa30e88af91f7b23f67e95620eccde2b171a44f4e117d0326451c5917c4ef699b6141344382
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 147
8
+ TINY = 148
9
9
 
10
10
  # PRE is nil unless it's a pre-release (beta, RC, etc.)
11
11
  PRE = nil
data/lib/brick.rb CHANGED
@@ -558,7 +558,7 @@ module Brick
558
558
  ::Brick._add_bt_and_hm([nil, table_name, poly, nil, primary_table, "(brick) #{table_name}_#{poly}"], relations,
559
559
  type, # Polymorphic class
560
560
  is_optional)
561
- else
561
+ elsif relations.present?
562
562
  missing_stis[primary_table] = type unless ::Brick.existing_stis.key?(type)
563
563
  end
564
564
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.147
4
+ version: 1.0.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorin Thwaits