Fixed rubocop errors

This commit is contained in:
Andres Keskküla 2014-12-18 14:14:49 +02:00
parent e991ab36f9
commit e917ba5166
2 changed files with 5 additions and 7 deletions

View file

@ -10,7 +10,7 @@ module Epp::ContactsHelper
# FIXME: Update returns 2303 update multiple times
code = params_hash['epp']['command']['update']['update'][:id]
@contact = Contact.where(code: code).first
#if update_rights? && stamp(@contact) && @contact.update_attributes(contact_and_address_attributes(:update))
# if update_rights? && stamp(@contact) && @contact.update_attributes(contact_and_address_attributes(:update))
if owner? && stamp(@contact) && @contact.update_attributes(contact_and_address_attributes(:update))
render 'epp/contacts/update'
else
@ -68,7 +68,7 @@ module Epp::ContactsHelper
def validate_contact_update_request
@ph = params_hash['epp']['command']['update']['update']
update_attrs_present?
#xml_attrs_present?(@ph, [['id'], %w(authInfo pw)])
# xml_attrs_present?(@ph, [['id'], %w(authInfo pw)])
xml_attrs_present?(@ph, [['id']])
end