Domain editing for client

This commit is contained in:
Martin Lensment 2014-09-23 17:26:38 +03:00
parent ef0eb7cbc6
commit 92984e19dd
29 changed files with 358 additions and 54 deletions

View file

@ -162,7 +162,7 @@ class Domain < ActiveRecord::Base
end
def general_tab_valid?
status_errors = errors.keys.collect { |x| x.match(/domain_statuses/) }
status_errors = errors.keys.select { |x| x.match(/domain_statuses/) }
(errors.keys - status_errors).empty?
end