components/financial_assistance/app/models/financial_assistance/applicant.rb
# rubocop:disable Metrics/ClassLength TODO: Remove this
disable Metrics/ClassLength TODO: Remove this
disable Metrics / ClassLength TODO : Remove this
def self_employment_fields_complete
      validations = []
      incomes.self_employment.each do |self_employment|
        validations << (self_employment[:amount].present? && self_employment[:frequency_kind].present? && self_employment[:start_on].present?)
      end
      !validations.include?(false)
    end
def self_employment_fields_complete validations = [ ] incomes . self_employment . each do | self_employment | validations << ( self_employment [ :amount ] . present? && self_employment [ :frequency_kind ] . present? && self_employment [ :start_on ] . present? ) end ! validations . include? ( false ) end
rubocop:disable Metrics/ClassLength TODO: Remove this
rubocop : disable Metrics / ClassLength TODO : Remove this