foodsoft/app/models/sepa_account_holder.rb

9 lines
256 B
Ruby
Raw Normal View History

class SepaAccountHolder < ApplicationRecord
belongs_to :group
belongs_to :user
def all_fields_present?
iban.present? && bic.present? && mandate_id.present? && user_id.present? && mandate_date_of_signature.present? && group_id.present?
end
end