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
|
||||
|
||||
def namespaced_name
|
||||
@params[:controller].sub("Controller", "").singularize.constantize
|
||||
@params[:controller].sub("Controller", "").singularize.camelize.constantize
|
||||
rescue NameError
|
||||
name
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user