postgres_ext 2.1.0 → 2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e108225b5ff194b97925399e805c0ab81ee95db6
|
4
|
+
data.tar.gz: cad4d50e3d7b19566eabdf8841d1e206a13cbadf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ede479c5b324e86d4c11a7427275a98871742052ebf55a30ebe67f1e332781db30b62ba791a59b271f0d72890c0ba8d9b281ca7c699654ef62f29271b060f160
|
7
|
+
data.tar.gz: 5e7c698daacf2ecc3c5752d963add7ae9e596aff4602d92b4a1c2919d35f0660fe55a6a4e3f4d2f2ce731b72c2b153edfcdddd864e129d59c8081623bb198046
|
@@ -3,7 +3,7 @@ class CTEProxy
|
|
3
3
|
include ActiveRecord::Sanitization::ClassMethods
|
4
4
|
include ActiveRecord::Reflection::ClassMethods
|
5
5
|
|
6
|
-
attr_accessor :reflections
|
6
|
+
attr_accessor :reflections, :current_scope
|
7
7
|
attr_reader :connection, :arel_table
|
8
8
|
|
9
9
|
def initialize(name, model)
|
@@ -29,5 +29,12 @@ class CTEProxy
|
|
29
29
|
def columns_hash
|
30
30
|
@model.columns_hash
|
31
31
|
end
|
32
|
-
end
|
33
32
|
|
33
|
+
def primary_key
|
34
|
+
@model.primary_key
|
35
|
+
end
|
36
|
+
|
37
|
+
def instantiate(record, column_types = {})
|
38
|
+
@model.instantiate(record, column_types)
|
39
|
+
end
|
40
|
+
end
|
data/lib/postgres_ext/version.rb
CHANGED