{"issue":{"created_at":"2011-11-19T15:15:04Z","state":"closed","updated_at":"2011-11-19T22:46:21Z","user":{"gravatar_id":"ae5bf6a2566204b386bf2898443be58d","id":58951,"url":"https://api.github.com/users/NobbZ","login":"NobbZ","avatar_url":"https://secure.gravatar.com/avatar/ae5bf6a2566204b386bf2898443be58d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":3,"body":"There is a Model \"Factory\" in our project since the beginning.\r\n\r\nIn the last days we decided to go away from a prepopulated test-db and use factory_girl for testing.\r\n\r\nBUT FG seems to conflict with our model.\r\n\r\nIs there any way to use FG in this case without to have to refactor the model and its dependencies?","assignee":null,"id":2288530,"number":242,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Conflicts with existing model \"Factory\"","closed_at":"2011-11-19T21:21:27Z","html_url":"https://github.com/thoughtbot/factory_girl/issues/242","milestone":null,"url":"https://api.github.com/repos/thoughtbot/factory_girl/issues/242"},"action":"created","comment":{"created_at":"2011-11-19T22:46:21Z","updated_at":"2011-11-19T22:46:21Z","user":{"gravatar_id":"786f05409ca8d18bae8d59200156272c","id":1574,"url":"https://api.github.com/users/joshuaclayton","login":"joshuaclayton","avatar_url":"https://secure.gravatar.com/avatar/786f05409ca8d18bae8d59200156272c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Sorry, but I'm not sure what's not \"kind\" about that. **Anywhere** you reference your `Factory`, your safest bet is to refer to it as `::Factory`. The `::` explicitly states that it's not namespaced within a module or class and will guarantee that you're not dealing with a `FactoryGirl::Factory`.","id":2801383,"url":"https://api.github.com/repos/thoughtbot/factory_girl/issues/comments/2801383"}}