Merge pull request #675 from bukalapak/master

porting #668 to master branch
This commit is contained in:
Ryan Bates
2013-05-03 16:15:31 -07:00
2 changed files with 11 additions and 1 deletions

View File

@@ -227,7 +227,7 @@ module CanCan
end
def namespace
@params[:controller].split("::")[0..-2]
@params[:controller].split(/::|\//)[0..-2]
end
def namespaced_name