Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed definition autoloading support for rails 2.x when config.gem is…

… in config/environments/test.rb
  • Loading branch information...
commit eb8b7741485a0c90197776eb364647a9c49e4216 1 parent 4802311
@jferris jferris authored
View
7 lib/factory_girl.rb
@@ -21,5 +21,10 @@ def Factory (name, attrs = {})
end
class Factory
- VERSION = "1.3.0"
+ VERSION = "1.3.1"
end
+
+if defined?(Rails) && Rails::VERSION::MAJOR == 2
+ require 'factory_girl/rails2'
+end
+
View
1  rails/init.rb → lib/factory_girl/rails2.rb
@@ -1,2 +1 @@
-require 'factory_girl'
Rails.configuration.after_initialize { Factory.find_definitions }

0 comments on commit eb8b774

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