1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

just return path parameters

This commit is contained in:
Aaron Patterson 2014-05-22 15:37:08 -07:00
parent 925bd97566
commit 8d8ebe3db5

View file

@ -24,14 +24,13 @@ module ActionDispatch
alias :params :parameters
def path_parameters=(parameters) #:nodoc:
@symbolized_path_params = nil
@env.delete('action_dispatch.request.parameters')
@env[Routing::RouteSet::PARAMETERS_KEY] = parameters
end
# The same as <tt>path_parameters</tt> with explicitly symbolized keys.
def symbolized_path_parameters
@symbolized_path_params ||= path_parameters.symbolize_keys
path_parameters
end
# Returns a hash with the \parameters used to form the \path of the request.