mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Fix some code styling issues
This commit is contained in:
parent
42946dfa15
commit
25d78cde74
4 changed files with 23 additions and 15 deletions
|
@ -90,7 +90,8 @@ class Dispute < ApplicationRecord
|
|||
def validate_domain_name_period_uniqueness
|
||||
return unless new_record?
|
||||
|
||||
existing_dispute = Dispute.unscoped.where(domain_name: domain_name, closed: false).where('expires_at > ?', starts_at)
|
||||
existing_dispute = Dispute.unscoped.where(domain_name: domain_name, closed: false)
|
||||
.where('expires_at > ?', starts_at)
|
||||
return unless existing_dispute.any?
|
||||
|
||||
errors.add(:base, 'Dispute already exists for this domain at given timeframe')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue