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: e452a04090126a1d9a532e0966bb6c01743920322e7de48edc3e5a91bfb46b2b
4
- data.tar.gz: 1c990677935f5332221d2e1780ab28bd0f207c58f17fadc7ac7e483325a445ac
3
+ metadata.gz: 8097cae6bac2456c47729482d4f340db30734545a81166f7c9e8465f841aa32d
4
+ data.tar.gz: dd3644b09d1a780ff1fdee8df908662c1d16315683ee25482684b1ed35490d4c
5
5
  SHA512:
6
- metadata.gz: 877d0b4d0ad1d9b3a7190612b4ec0ebfee9973c94e6389fe6304a8f4221fb06d260dc580a7837b67fff2ee806bb99afaf41c5bb5ef640965ab1edb45fbc246b4
7
- data.tar.gz: 404f0ffe73683277f94a768d7dbd2ce126ffecff87ca0b07728f497745acd314915445b57c695eae86ae84fc76ae62328bd52249687a0a2965f84409871c9712
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
@@ -1,3 +1,3 @@
1
1
  module AutoDefineScope
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_define_scope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - tinyfeng.hou