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:
parent
925bd97566
commit
8d8ebe3db5
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue