update scope syntax for rails 4