Browse Source

feat: add sale information validations file

CLDC-898-monthly-charges-validation
natdeanlewissoftwire 2 years ago
parent
commit
32dc2d0e1c
  1. 1
      app/models/sales_log.rb
  2. 2
      app/models/validations/sales/sale_information_validations.rb

1
app/models/sales_log.rb

@ -3,6 +3,7 @@ class SalesLogValidator < ActiveModel::Validator
include Validations::SharedValidations
include Validations::Sales::FinancialValidations
include Validations::LocalAuthorityValidations
include Validations::Sales::SaleInformationValidations
def validate(record)
validation_methods = public_methods.select { |method| method.starts_with?("validate_") }

2
app/models/validations/sales/sale_information_validations.rb

@ -0,0 +1,2 @@
module Validations::Sales::SaleInformationValidations
end
Loading…
Cancel
Save