mirror of
https://github.com/internetee/registry.git
synced 2025-07-04 10:13:34 +02:00
Refactor
This commit is contained in:
parent
3e983e6082
commit
0cea91a28a
3 changed files with 9 additions and 15 deletions
|
@ -103,13 +103,6 @@ class Domain < ActiveRecord::Base
|
|||
errors.add(:period, :out_of_range) unless valid_values.include?(period.to_s)
|
||||
end
|
||||
|
||||
def all_dependencies_valid?
|
||||
validate_nameservers_count
|
||||
validate_admin_contacts_count
|
||||
|
||||
errors.empty?
|
||||
end
|
||||
|
||||
## SHARED
|
||||
|
||||
def to_s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue