torque-postgresql 0.1.4 → 0.1.5

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: a258d6ecef85609644383dcb9b0664d7cd475943
4
- data.tar.gz: 759dfc6d12e06182ab2dcd7200cf28369da93c8c
3
+ metadata.gz: 77d019513db5d70b25fd3489ccbdd7305a11e2ab
4
+ data.tar.gz: d12c174d8466de76823f6fb80872bf3fc7303fec
5
5
  SHA512:
6
- metadata.gz: b739abd40aa5039ac1869908a9dedf000487d03ec6741c192b4c48c47c892b58a9352c8f5f454bdf5c642e70cfb9c6dea5c76612c8c045cf8b3069dc76d9c4a5
7
- data.tar.gz: 8069f73a279d069eb52bac167c95ad38e1da1b1a270d5fc28fe6c48a832307980bf509c39f2f12c749904cd689c4cf6b68b5e203a7b88b726c3c682e504f2c2b
6
+ metadata.gz: 983236df47590d03edd4d0359e7782e10e4e469631f4f92f8808e6c9770d56e886be78d6d35711005d5761a5868ba2123a9fe98200f20f7915692aacacb7b97a
7
+ data.tar.gz: 2466995358d6b044ba9af43c52b26bdd861c725ade78dc696ea81283121d17d8efc28feae9098bdfe75dd3c09e3488a56d25f075194aa5f746534f2f42398407
@@ -169,9 +169,9 @@ module Torque
169
169
  if query.columns_hash.key?(foreign_key)
170
170
  joins_projections(base.primary_key => foreign_key)
171
171
  if polymorphic.present?
172
- foreign_type = project(foreign_key.gsub(/_id$/, '_type'), query_table)
173
- @selected_attributes << foreign_type
174
- @join_attributes << foreign_type.eq(base_name)
172
+ foreign_type = foreign_key.gsub(/_id$/, '_type')
173
+ @selected_attributes << project(foreign_type, query_table)
174
+ @join_attributes << project(foreign_type).eq(base_name)
175
175
  end
176
176
  end
177
177
  end
@@ -1,5 +1,5 @@
1
1
  module Torque
2
2
  module PostgreSQL
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Silva