fixed ArgumentError

This commit is contained in:
dinsmol 2021-09-03 16:12:16 +03:00
parent c771902780
commit 62d1ba45a2
8 changed files with 10 additions and 12 deletions

View file

@ -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 != {}