fixing scopes for rails 4.1.5 upgrade