instance method
normalize_relative_action_path
Ruby on Rails 7.2.3
Since v7.2.3 PrivateSignature
normalize_relative_action_path(rel_action_path)
No documentation comment.
Parameters
-
rel_action_pathreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 647
def normalize_relative_action_path(rel_action_path) # :doc:
uri = URI.parse(request.path)
# add the action path to the request.path
uri.path += "/#{rel_action_path}"
# relative path with "./path"
uri.path.gsub!("/./", "/")
uri.path.chomp("/")
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 647
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection