fixes rails 4.1 scoping in category model