Skip to content
Browse files

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

  • Loading branch information...
1 parent 7273ba2 commit a7acc3e33bd876b7d6a1f73fc9cb4393683a4942 @joshuaclayton joshuaclayton committed Mar 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/factory_girl/syntax/vintage.rb
View
4 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.
#
@@ -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

0 comments on commit a7acc3e

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