Permalink
Browse files

typo in unstranslated_route route.path.spec.to_s

  • Loading branch information...
1 parent d32abad commit 2251a09b4ac8c9fca3638f8a51d9a5683970c39d @narbo narbo committed with May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails-translate-routes.rb
@@ -292,7 +292,7 @@ def translate_route route, locale
def untranslated_route route
conditions = {}
if Rails.version >= '3.2'
- conditions[:path_info] = route.path
+ conditions[:path_info] = route.path.spec.to_s
conditions[:request_method] = parse_request_methods route.verb if route.verb != //
conditions[:subdomain] = route.constraints[:subdomain] if route.constraints
else

0 comments on commit 2251a09

Please sign in to comment.