Permalink
Browse files

fix issue #663: namespace regression

  • Loading branch information...
1 parent 1e89b31 commit 051f8f0e826c712790a5521540e42700e3037df6 @diegorv diegorv committed Jun 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cancan/controller_resource.rb
View
2 lib/cancan/controller_resource.rb
@@ -220,7 +220,7 @@ def resource_params
end
def namespace
- @params[:controller].split("::")[0..-2]
+ @params[:controller].split("/")[0..-2]
end
def namespaced_name

0 comments on commit 051f8f0

Please sign in to comment.