scopes are defined differently in rails 4.1