fixes bug with cancan and rails 4.0. comments in applicationcontroller