mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Use new requires_attribute method in poll
This commit is contained in:
parent
857ab488b8
commit
365e27086f
5 changed files with 5 additions and 10 deletions
|
@ -38,9 +38,6 @@ class Epp::PollsController < EppController
|
|||
private
|
||||
|
||||
def validate_poll
|
||||
op = params[:parsed_frame].css('poll').first[:op]
|
||||
return true if %w(ack req).include?(op)
|
||||
epp_errors << { code: '2306', msg: I18n.t('errors.messages.attribute_op_is_invalid') }
|
||||
false
|
||||
requires_attribute 'poll', 'op', values: %(ack req)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue