Skip to content

Commit

Permalink
Prevent rails-translate-routes to modify params
Browse files Browse the repository at this point in the history
  • Loading branch information
Maris Cilitis committed Jan 12, 2015
1 parent a6f0794 commit a920033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails-translate-routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def translate_route route, locale
conditions[k] = v unless k == :request_method
end
end
defaults = route.defaults.merge LOCALE_PARAM_KEY => locale.dup
defaults = route.defaults
else
conditions = { :path_info => translate_path(route.path, locale) }
conditions[:request_method] = parse_request_methods route.conditions[:request_method] if route.conditions.has_key? :request_method
Expand Down

0 comments on commit a920033

Please sign in to comment.