rails 4 changes the way order scopes are applied