active_record-mti 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record/mti/calculations.rb +2 -3
- data/lib/active_record/mti/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775e9a363f5a8e4679c072bda8cb445a5de901ed
|
4
|
+
data.tar.gz: 0242e47c271bdeb7d17f6031262141f47d19db03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c60c73d749220cfbb22a4992612f40e93ed0ea9fc6053ae95e4ba30fc43d6903d04721315fe4dd8b287728135ca8c8ce089b281a117954b0e493afcd356bd2
|
7
|
+
data.tar.gz: 091b6937861bf16fe0b41fcc7ab28e50aa9c58aca70d1e236c664109e4b4ee7e1361032ceac51e8c2a3b5616c64bb0970b319257b0ddd4d7a0f3ed1415741f16
|
@@ -27,9 +27,8 @@ module ActiveRecord
|
|
27
27
|
column_alias ||= @klass.connection.column_name_for_operation(operation, select_value)
|
28
28
|
relation.select_values = [select_value]
|
29
29
|
|
30
|
-
#
|
31
|
-
|
32
|
-
relation.arel.projections.shift if @klass.using_multi_table_inheritance?
|
30
|
+
# Remove our cast otherwise PSQL will insist that it be included in the GROUP
|
31
|
+
relation.arel.projections.select!{ |p| p.to_s != "cast(\"#{klass.table_name}\".\"tableoid\"::regclass as text)" } if @klass.using_multi_table_inheritance?
|
33
32
|
|
34
33
|
query_builder = relation.arel
|
35
34
|
bind_values = query_builder.bind_values + relation.bind_values
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-mti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Stevens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|