mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Logging user actions #2808
This commit is contained in:
parent
79ac8db0eb
commit
8700beea60
7 changed files with 3 additions and 70 deletions
|
@ -11,7 +11,7 @@ class Epp::Domain < Domain
|
|||
|
||||
before_validation :validate_contacts
|
||||
def validate_contacts
|
||||
return if contacts.map {|c| c.valid? }.all?
|
||||
return if contacts.map(&:valid?).all?
|
||||
add_epp_error('2304', nil, nil, I18n.t(:object_status_prohibits_operation))
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue