quick fix to get nested resources working again - closes #482
This commit is contained in:
@@ -208,7 +208,7 @@ module CanCan
|
||||
end
|
||||
|
||||
def namespaced_name
|
||||
@params[:controller].sub("Controller", "").singularize.camelize.constantize
|
||||
@name || @params[:controller].sub("Controller", "").singularize.camelize.constantize
|
||||
rescue NameError
|
||||
name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user