activerecord-polytypes 0.1.1 → 0.1.2

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: ce394222154b5e9cd2755f88800d48f83f9fd28df97a6b64626eee208647faa9
4
- data.tar.gz: ac48a24a4971b580ad884f486d6cf6a2fd6ca0b66afcfef0e382385cbc8c5332
3
+ metadata.gz: 14bd860961bc0035b5fc2f83db1beec51d3a4c758ac8de01ed40171303aca333
4
+ data.tar.gz: f56ffea0e2286170c92ce30a77212786c96d7307f61306e1698362ceb203c3c7
5
5
  SHA512:
6
- metadata.gz: 6b07b0c0dcc9437ed8e3074662ad48ddf7dbd390c1f1859589841aff7ce940ffafcbfdb4c1ea1d2b0b0fa67909d9f20371a9effba41fb00bade6f63ee21023df
7
- data.tar.gz: 577f2ea8049127bc0a8ba6f23a8cca3d76f125c25820034591a3dca6883cd19d1147d2d41ba9424f8a321378ee62aec717262101e8802bf2a4362e0b5394ad9c
6
+ metadata.gz: f42eda8dd767d1d49abb25ac42b9815c11a5bce20d92b57af8f8dc766ee41dc81fc340a5506844ca02c4017db061d2bfad51335b876bb1cee78fee9f3d0002b3
7
+ data.tar.gz: 7f7705175f42dc398ce1b2765fa518f848f0a76195c5e20c924d75b67abb0be22e993d6427c0572419aeee5649c4356d03ec02e52852995b3523e5fa1d20beb3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRecordPolytypes
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -209,7 +209,7 @@ module ActiveRecordPolytypes
209
209
  ]
210
210
  end.transpose
211
211
 
212
- select("#{table_name}.*").from(<<~SQL)
212
+ from(<<~SQL)
213
213
  (
214
214
  SELECT #{table_name}.*,#{select_components * ","}, CASE #{case_components * " "} ELSE '#{name}' END AS type
215
215
  FROM #{table_name} #{join_components * " "}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-polytypes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-16 00:00:00.000000000 Z
11
+ date: 2024-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord