Skip to content

Commit

Permalink
Revert "[padrino-core] to_s route paths before joining"
Browse files Browse the repository at this point in the history
This reverts commit aaad729.
  • Loading branch information
DAddYE committed Oct 28, 2011
1 parent 16eee16 commit 5dfd167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padrino-core/lib/padrino-core/mounter.rb
Expand Up @@ -106,7 +106,7 @@ def named_routes
app_obj.routes.map { |route|
name_array = "(#{route.named.to_s.split("_").map { |piece| %Q[:#{piece}] }.join(", ")})"
request_method = route.conditions[:request_method][0]
full_path = File.join(uri_root, route.original_path.to_s)
full_path = File.join(uri_root, route.original_path)
next if route.named.blank? || request_method == 'HEAD'
OpenStruct.new(:verb => request_method, :identifier => route.named, :name => name_array, :path => full_path)
}.compact
Expand Down

0 comments on commit 5dfd167

Please sign in to comment.