mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Remove unused routes
This commit is contained in:
parent
958e370650
commit
9e5fdbcf11
5 changed files with 1 additions and 12 deletions
|
@ -15,7 +15,7 @@ class EppConstraint
|
|||
request.params[:nokogiri_frame] ||= Nokogiri::XML(request.params[:raw_frame] || request.params[:frame])
|
||||
request.params[:parsed_frame] ||= request.params[:nokogiri_frame].dup.remove_namespaces!
|
||||
|
||||
unless [:keyrelay, :poll, :session, :not_found].include?(@type)
|
||||
unless [:keyrelay, :poll, :session].include?(@type)
|
||||
element = "//#{@type}:#{request.params[:action]}"
|
||||
return false if request.params[:nokogiri_frame].xpath("#{element}", OBJECT_TYPES[@type]).none?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue