dscf-credit 0.4.52 → 0.4.53
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_application.rb +1 -1
- data/app/models/dscf/credit/loan_profile.rb +1 -5
- data/db/seeds.rb +19 -1317
- data/lib/dscf/credit/version.rb +1 -1
- metadata +2 -3
- data/db/dev_seeds.rb +0 -582
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cd7b86fafba65100a4ed0ab5c41c589ada83d23f570229aca69fbf6a83d63fb
|
|
4
|
+
data.tar.gz: 591f9e67a6cb15426ad218deecbf42e0c88fca60f20b1e06bbb79f270fca3497
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a858b1d4de7fb4ea0e03f767e93305e5283d0503e307b89e639b36f0183969f8fde5ed9adb12f92938e7b9b0a24d91cfdb7dbb39cb38fd453e0fcff5aa3ec244
|
|
7
|
+
data.tar.gz: 66bf53f5e459109da2f6b470e06edd49b671ac5798bad9d67af51c178985343009c6aa3606f5bce696e6909db05b71f860eb24faee4ca3305815a076dbb80dcc
|
|
@@ -22,7 +22,7 @@ module Dscf::Credit
|
|
|
22
22
|
validates :score, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 100 }, allow_nil: true
|
|
23
23
|
|
|
24
24
|
def self.ransackable_attributes(auth_object = nil)
|
|
25
|
-
%w[id
|
|
25
|
+
%w[id bank_statement_source score created_at updated_at]
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def self.ransackable_associations(auth_object = nil)
|
|
@@ -16,12 +16,8 @@ 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
|
-
|
|
23
19
|
def self.ransackable_attributes(auth_object = nil)
|
|
24
|
-
%w[id code score total_limit created_at updated_at loan_application_id
|
|
20
|
+
%w[id code score total_limit created_at updated_at loan_application_id]
|
|
25
21
|
end
|
|
26
22
|
|
|
27
23
|
def self.ransackable_associations(auth_object = nil)
|