Skip to content

Commit

Permalink
just return path parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed May 22, 2014
1 parent 925bd97 commit 8d8ebe3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionpack/lib/action_dispatch/http/parameters.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 8d8ebe3

Please sign in to comment.