I have a rails 4 application successfully running locally with cancan. But when I push it to Heroku, I get this error, each time the code tries to authorize anything
Uninitialized constant ApplicationController::Ability
Looking at the logs, it looks like its failing in this method, which I have in my application controller. Any idea what is going on?
def current_ability
@current_ability ||= Ability.new(current_user, load_service_provider_from_host)
end
This works fine on my local machine.