mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
fixed ArgumentError
This commit is contained in:
parent
c771902780
commit
62d1ba45a2
8 changed files with 10 additions and 12 deletions
|
@ -74,7 +74,7 @@ module Repp
|
|||
render_epp_error
|
||||
end
|
||||
|
||||
def render_epp_error(status = :bad_request, data = {})
|
||||
def render_epp_error(status = :bad_request, **data)
|
||||
@epp_errors ||= ActiveModel::Errors.new(self)
|
||||
@epp_errors.add(:epp_errors, msg: 'Command failed', code: '2304') if data != {}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ module Repp
|
|||
return
|
||||
end
|
||||
|
||||
render_success(create_update_success_body)
|
||||
render_success(**create_update_success_body)
|
||||
end
|
||||
|
||||
api :PUT, '/repp/v1/contacts/:contact_code'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue