Update scopes for Rails 4