app/models/automatic_ban.rb
# Minimum registration period is three months. Having short ban period
# that uses the same time should abusers from participating in the most
# immediate rounds of auctions for a domain name.
Minimum registration period is three months. Having short ban period
that uses the same time should abusers from participating in the most
immediate rounds of auctions for a domain name.
Minimum registration period is three months . Having short ban period that uses the same time should abusers from participating in the most immediate rounds of auctions for a domain name .
def create
    @unpaid_invoices = Invoice.where(user_id: user, status: Invoice.statuses[:cancelled]).count
    raise Errors::NoCancelledInvoices.new(user.id, domain_name) if unpaid_invoices.zero?
    create_ban
    assign_ban_length
    send_email
    ban
  end
def create @unpaid_invoices = Invoice . where ( user_id : user , status : Invoice . statuses [ :cancelled ] ) . count raise Errors :: NoCancelledInvoices . new ( user . id , domain_name ) if unpaid_invoices . zero? create_ban assign_ban_length send_email ban end
Minimum registration period is three months.
Minimum registration period is three months .