diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-22 15:37:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-22 15:37:56 -0700 |
commit | 8d8ebe3db529c30486bb4d2310c9ea158b49a459 (patch) | |
tree | c54e9ee37f84214ea86e018ca0a0bed6eeddeb68 /actionpack/lib/action_dispatch/http | |
parent | 925bd975663df2e0e8613507a7c95a6945a277ac (diff) | |
download | rails-8d8ebe3db529c30486bb4d2310c9ea158b49a459.tar.gz rails-8d8ebe3db529c30486bb4d2310c9ea158b49a459.tar.bz2 rails-8d8ebe3db529c30486bb4d2310c9ea158b49a459.zip |
just return path parameters
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/parameters.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/parameters.rb b/actionpack/lib/action_dispatch/http/parameters.rb index 70e960488e..5b22cd1fcd 100644 --- a/actionpack/lib/action_dispatch/http/parameters.rb +++ b/actionpack/lib/action_dispatch/http/parameters.rb @@ -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. |