Skip to content

Commit

Permalink
Remove check on controller_name for namespace removal
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Jan 29, 2010
1 parent 21e18a3 commit 93b8ced
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -48,7 +48,7 @@ def current_segment
end

def remove_namespace(path)
if (controller_path != controller_name) && namespace_segments.any?
if namespace_segments.any?
path.sub(%r(^/#{namespace_segments.join('/')}), '')
else
path
Expand Down

0 comments on commit 93b8ced

Please sign in to comment.