lib/object_factory.rb in rahoulb-object-factory-0.1.0 vs lib/object_factory.rb in rahoulb-object-factory-0.1.1

- old
+ new

@@ -163,5 +163,12 @@ # Short-cut method for Object::Factory#create_and_save_a def a_saved klass, parameters = {} Object.factory.create_and_save_a klass, parameters end + +# Short-cut method for Object::Factory#when_creating_a +def when_creating_a klass, options = {} + Object.factory.when_creating_a klass, options +end + +alias when_creating_an when_creating_a