mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Logging user actions #2808
This commit is contained in:
parent
79ac8db0eb
commit
8700beea60
7 changed files with 3 additions and 70 deletions
|
@ -311,8 +311,8 @@ class Contact < ActiveRecord::Base
|
|||
def status_notes_array=(notes)
|
||||
self.status_notes = {}
|
||||
notes ||= []
|
||||
statuses.each_with_index do |status,i|
|
||||
self.status_notes[status] = notes[i]
|
||||
statuses.each_with_index do |status, i|
|
||||
status_notes[status] = notes[i]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -78,7 +78,6 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
after_save :update_whois_record
|
||||
|
||||
|
||||
after_create :update_reserved_domains
|
||||
def update_reserved_domains
|
||||
return unless in_reserved_list?
|
||||
|
|
|
@ -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