dscf-credit 0.4.51 → 0.4.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cd84b11279c8d25e1e6b8952092dcff6e679d2aad0088461ff5499bef0647fd
4
- data.tar.gz: 5b5f6ed45d2c433a0de37ccd05ba570029ce624a3dbe6aced2c000938868c625
3
+ metadata.gz: 9b3eefc233d258db5cf43d7f649271bd91c1e04dcbad18ac0f7b0b39bff1e9ef
4
+ data.tar.gz: 1b08ad7f65325a38aa90c31507155dff2c6fe2c290df6203e2770c6c054270ce
5
5
  SHA512:
6
- metadata.gz: ce1f265b99e255c46381994f6e64879a8fe436e5af392ef888abf89e05d8887095c834ba74685a315a63848834de389b8773bacc0d8e9f0c3f249e298308931b
7
- data.tar.gz: 64580ad654fea9de62b7281c5fea9ff4bc08da90cde36c380b19fc98f8078caa963f87cf9f5b349b0ad62385ae769a56f97ab82f3c90b72c50a6396f29edfa6a
6
+ metadata.gz: 52a2427cbcdc42a4575483279db3bf670c877c33bdc65e08e0e1d28e3c2557d724ccac25b02265951df6b43f9e17df74827e8638f8ca1389f36d4030a81d66d8
7
+ data.tar.gz: d1cf69128bea5b92d7b9975476320652817e032db56c8964d040f0cac1bb508f6a4865dc8aa1d39ab9f955abb3a63c315994530205c8ae1ea8093830e725b267
@@ -16,8 +16,12 @@ module Dscf::Credit
16
16
  scope :with_score_range, ->(min, max) { where(score: min..max) }
17
17
  scope :by_total_limit_range, ->(min, max) { where(total_limit: min..max) }
18
18
 
19
+ ransacker :user_id do
20
+ Arel.sql("(SELECT dscf_credit_loan_applications.user_id FROM dscf_credit_loan_applications WHERE dscf_credit_loan_applications.id = dscf_credit_loan_profiles.loan_application_id)")
21
+ end
22
+
19
23
  def self.ransackable_attributes(auth_object = nil)
20
- %w[id code score total_limit created_at updated_at loan_application_id]
24
+ %w[id code score total_limit created_at updated_at loan_application_id user_id]
21
25
  end
22
26
 
23
27
  def self.ransackable_associations(auth_object = nil)
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Credit
3
- VERSION = "0.4.51"
3
+ VERSION = "0.4.52"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-credit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.51
4
+ version: 0.4.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adoniyas