Added the needed camelize to recent patch for engines and namespaced models
This commit is contained in:
parent
6c497b8dd9
commit
d35419fa4c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user