mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Commenting to assimilate controllers
This commit is contained in:
parent
0a4a7f98c2
commit
092460a604
1 changed files with 9 additions and 3 deletions
|
@ -67,8 +67,10 @@ module Epp::ContactsHelper
|
|||
render 'epp/error'
|
||||
end
|
||||
|
||||
## HELPER METHODS
|
||||
private
|
||||
|
||||
## CREATE
|
||||
def validate_contact_create_request
|
||||
@ph = params_hash['epp']['command']['create']['create']
|
||||
xml_attrs_present?(@ph, [['id'],
|
||||
|
@ -80,27 +82,31 @@ module Epp::ContactsHelper
|
|||
['authInfo']])
|
||||
end
|
||||
|
||||
## UPDATE
|
||||
def validate_contact_update_request
|
||||
@ph = params_hash['epp']['command']['update']['update']
|
||||
xml_attrs_present?(@ph, [['id'] ])
|
||||
end
|
||||
|
||||
## DELETE
|
||||
def validate_contact_delete_request
|
||||
@ph = params_hash['epp']['command']['delete']['delete']
|
||||
xml_attrs_present?(@ph, [ ['id'] ] )
|
||||
end
|
||||
|
||||
## CHECK
|
||||
def validate_contact_check_request
|
||||
@ph = params_hash['epp']['command']['check']['check']
|
||||
xml_attrs_present?(@ph, [ ['id'] ])
|
||||
end
|
||||
|
||||
## INFO
|
||||
def validate_contact_info_request
|
||||
@ph = params_hash['epp']['command']['info']['info']
|
||||
xml_attrs_present?(@ph, [ ['id'] ])
|
||||
end
|
||||
|
||||
|
||||
## SHARED
|
||||
def contact_and_address_attributes( type=:create )
|
||||
case type
|
||||
when :update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue