Skip to content
Browse files

Bugfix: UnknownFabricatorError not autoloaded

  • Loading branch information...
1 parent 66c159f commit f89133f1940286e426c0d968dd2f6655ac3be28f Paul Elliott committed Sep 14, 2010
View
5 Changelog.markdown
@@ -1,3 +1,8 @@
+### 0.8.1 (09/14/2010) ###
+
+* Bugfix: UnknownFabricatorError not loaded if it is the first error encountered
+
+
### 0.8.0 (09/13/2010) ###
* Stacking callbacks (all defined after_build and after_create callbacks will execute)
View
5 lib/fabrication.rb
@@ -1,7 +1,8 @@
module Fabrication
- autoload :DuplicateFabricatorError, 'fabrication/errors'
- autoload :UnfabricatableError, 'fabrication/errors'
+ autoload :DuplicateFabricatorError, 'fabrication/errors/duplicate_fabricator_error'
+ autoload :UnfabricatableError, 'fabrication/errors/unfabricatable_error'
+ autoload :UnknownFabricatorError, 'fabrication/errors/unknown_fabricator_error'
autoload :Attribute, 'fabrication/attribute'
autoload :Fabricator, 'fabrication/fabricator'
View
9 lib/fabrication/errors.rb
@@ -1,9 +0,0 @@
-module Fabrication
-
- class DuplicateFabricatorError < StandardError; end
-
- class UnfabricatableError < StandardError; end
-
- class UnknownFabricatorError < StandardError; end
-
-end
View
1 lib/fabrication/errors/duplicate_fabricator_error.rb
@@ -0,0 +1 @@
+class Fabrication::DuplicateFabricatorError < StandardError; end
View
1 lib/fabrication/errors/unfabricatable_error.rb
@@ -0,0 +1 @@
+class Fabrication::UnfabricatableError < StandardError; end
View
1 lib/fabrication/errors/unknown_fabricator_error.rb
@@ -0,0 +1 @@
+class Fabrication::UnknownFabricatorError < StandardError; end

0 comments on commit f89133f

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