Permalink
Browse files

just return path parameters

  • Loading branch information...
1 parent 925bd97 commit 8d8ebe3db529c30486bb4d2310c9ea158b49a459 @tenderlove tenderlove committed May 22, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/http/parameters.rb
@@ -24,14 +24,13 @@ def parameters
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.

0 comments on commit 8d8ebe3

Please sign in to comment.