Update scopes to Rails 4 syntax