{"comment":{"created_at":"2011-10-15T09:30:47Z","body":"This is exactly how AR behaves - the default scope will filter out the documents in the relation if they don't match.","updated_at":"2011-10-15T09:30:47Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/2414767","id":2414767,"user":{"gravatar_id":"6f09262a13427532461b0b618d445b1e","avatar_url":"https://secure.gravatar.com/avatar/6f09262a13427532461b0b618d445b1e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/durran","id":9030,"login":"durran"}},"action":"created","issue":{"number":834,"created_at":"2011-04-12T12:28:34Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When I set up a \"default_scope\" the \"references_one\" field of another model could not load it's reference any more since the item referenced was filtered by the default_scope. (Using Mongoid 2.0.0)\r\n\r\nSeems like a bug, but could be a feature.","comments":4,"title":"Setting \"default_scope\" causes relations outside of this scope not to load. Is this intentional?","updated_at":"2011-10-15T09:30:47Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/834","id":759013,"assignee":null,"milestone":null,"closed_at":"2011-10-15T09:30:47Z","user":{"gravatar_id":"e5901be87647778b5277f33584c69ec8","avatar_url":"https://secure.gravatar.com/avatar/e5901be87647778b5277f33584c69ec8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/saas2813","id":724675,"login":"saas2813"},"html_url":"https://github.com/mongoid/mongoid/issues/834","labels":[{"name":"needs info","url":"https://api.github.com/repos/mongoid/mongoid/labels/needs+info","color":"444444"}],"state":"closed"},"legacy":{"issue_id":759013,"comment_id":2414767}}