Not a huge fan of this re-assignment. Why not just the following?:

```ruby
def convert_scope_to_relation(scope)
  relation = associated_class.all

  if scope
    # Source: AR::Associations::AssociationScope#eval_scope
    relation.instance_exec(subject, &scope)
  else
    relation
  end
end
```