Skip to content

Commit

Permalink
Namespace Factory as top-level; fixes FactoryGirl for 1.9.2-p318
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Mar 9, 2012
1 parent 7273ba2 commit a7acc3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/factory_girl/syntax/vintage.rb
@@ -1,7 +1,7 @@
module FactoryGirl
module Syntax
module Vintage
module Factory
module ::Factory
# Defines a new factory that can be used by the build strategies (create and
# build) to build new objects.
#
Expand Down Expand Up @@ -140,7 +140,7 @@ def self.stub(name, overrides = {})
# Example:
# Factory(:user, :name => 'Joe')
def Factory(name, attrs = {})
Factory.default_strategy(name, attrs)
::Factory.default_strategy(name, attrs)
end
end
end
Expand Down

0 comments on commit a7acc3e

Please sign in to comment.