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 +4 -4
- data/app/models/dscf/credit/loan_profile.rb +5 -1
- data/lib/dscf/credit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b3eefc233d258db5cf43d7f649271bd91c1e04dcbad18ac0f7b0b39bff1e9ef
|
|
4
|
+
data.tar.gz: 1b08ad7f65325a38aa90c31507155dff2c6fe2c290df6203e2770c6c054270ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/dscf/credit/version.rb
CHANGED