Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix: UnknownFabricatorError not autoloaded

  • Loading branch information...
commit f89133f1940286e426c0d968dd2f6655ac3be28f 1 parent 66c159f
Paul Elliott authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.