mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Refactor request_valid
This commit is contained in:
parent
0b7017481d
commit
e66b5adae5
3 changed files with 14 additions and 12 deletions
|
@ -62,7 +62,7 @@ class EppController < ApplicationController
|
|||
handle_errors and return if epp_errors.any?
|
||||
end
|
||||
|
||||
def epp_request_valid?(*selectors)
|
||||
def requires(*selectors)
|
||||
selectors.each do |selector|
|
||||
full_selector = [@prefix, selector].join(' ')
|
||||
el = params[:parsed_frame].css(full_selector).first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue