This commit is contained in:
Martin Lensment 2014-12-11 11:55:28 +02:00
parent f4a7c955f3
commit 5d2152aff3

View file

@ -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