Added the needed camelize to recent patch for engines and namespaced models
This commit is contained in:
@@ -204,7 +204,7 @@ module CanCan
|
|||||||
end
|
end
|
||||||
|
|
||||||
def namespaced_name
|
def namespaced_name
|
||||||
@params[:controller].sub("Controller", "").singularize.constantize
|
@params[:controller].sub("Controller", "").singularize.camelize.constantize
|
||||||
rescue NameError
|
rescue NameError
|
||||||
name
|
name
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user