Updated scopes to adhere to Rails 4