make scopes more Rails 4 friendly