auto_define_scope 0.1.7 → 0.1.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8097cae6bac2456c47729482d4f340db30734545a81166f7c9e8465f841aa32d
|
4
|
+
data.tar.gz: dd3644b09d1a780ff1fdee8df908662c1d16315683ee25482684b1ed35490d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4dc1e4b366d803dd91fd1a7ff7297918aef5b5c7b0a699f9497b751a69023cf278f97575e733daed16c19e94dfaf2d8315b82f597dada5e3a65bfbff846310
|
7
|
+
data.tar.gz: 333a88df1c19a5bfa61eb3f5e0941dc79f76ab9d5124425a4ee0ade7abea9609818fb717d4c4d9c035afbf3d7b09d86b0791317867120e49ac598f024841f2f2
|
@@ -46,6 +46,7 @@ module AutoDefineScope
|
|
46
46
|
next
|
47
47
|
end
|
48
48
|
column_type = klass.columns_hash[c.to_s]&.type
|
49
|
+
binding.pry if column_type
|
49
50
|
raise "scopes defined error, not found column('#{c}') for table #{klass.table_name}" if column_type.nil?
|
50
51
|
joins_params = joins_params_array.reverse.inject() { |a, n| { n => a } }
|
51
52
|
table_name = klass.table_name
|