module JeraPayment::Concerns::HouseholdMethods

Public Instance Methods

ensure_current_household() click to toggle source
# File lib/jera_payment/models/concerns/household_methods.rb, line 25
def ensure_current_household
  sub_account = self.sub_account
  sub_account.update_columns(current_household_id: self.id)
end
has_create_callback?() click to toggle source
# File lib/jera_payment/models/concerns/household_methods.rb, line 13
def has_create_callback?
  !is_verification?
end
has_destroy_callback?() click to toggle source
# File lib/jera_payment/models/concerns/household_methods.rb, line 21
def has_destroy_callback?
  false
end
has_update_callback?() click to toggle source
# File lib/jera_payment/models/concerns/household_methods.rb, line 9
def has_update_callback?
  false
end
is_verification?() click to toggle source
# File lib/jera_payment/models/concerns/household_methods.rb, line 17
def is_verification?
  self.verification
end