mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
Cleanup
This commit is contained in:
parent
f4a7c955f3
commit
5d2152aff3
1 changed files with 0 additions and 5 deletions
|
@ -243,11 +243,6 @@ class Domain < ActiveRecord::Base
|
|||
(errors.keys - assoc_errors).empty?
|
||||
end
|
||||
|
||||
def general_tab_valid?
|
||||
status_errors = errors.keys.select { |x| x.match(/domain_statuses/) }
|
||||
(errors.keys - status_errors).empty?
|
||||
end
|
||||
|
||||
def statuses_tab_valid?
|
||||
!errors.keys.any? { |x| x.match(/domain_statuses/) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue