Skip to content
This repository
Browse code

Namespace Factory as top-level; fixes FactoryGirl for 1.9.2-p318

  • Loading branch information...
commit a7acc3e33bd876b7d6a1f73fc9cb4393683a4942 1 parent 7273ba2
Joshua Clayton joshuaclayton authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/factory_girl/syntax/vintage.rb
4 lib/factory_girl/syntax/vintage.rb
... ... @@ -1,7 +1,7 @@
1 1 module FactoryGirl
2 2 module Syntax
3 3 module Vintage
4   - module Factory
  4 + module ::Factory
5 5 # Defines a new factory that can be used by the build strategies (create and
6 6 # build) to build new objects.
7 7 #
@@ -140,7 +140,7 @@ def self.stub(name, overrides = {})
140 140 # Example:
141 141 # Factory(:user, :name => 'Joe')
142 142 def Factory(name, attrs = {})
143   - Factory.default_strategy(name, attrs)
  143 + ::Factory.default_strategy(name, attrs)
144 144 end
145 145 end
146 146 end

0 comments on commit a7acc3e

Please sign in to comment.
Something went wrong with that request. Please try again.