Fixed namespace method to be able to use controller inside modules

CanCanCan didn't work for me when I had controllers in paths like this:
`app/models/controllers/pages/qa/questions_controller.rb`

I think this change fixes this. Btw, I don't understand why there is no `camelize` call in `namespace` or in `namespaced_name`