mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +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 != {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue