Module ObjectDaddy::RailsClassMethods
In: lib/object_daddy.rb

Methods

Public Instance methods

Creates and tries to save an instance of this class, using any known generators. The generated instance is yielded to a block if provided.

This will not raise errors on a failed save. Use generate! if you want errors raised.

Creates and tries to save! an instance of this class, using any known generators. The generated instance is yielded to a block if provided.

This will raise errors on a failed save. Use generate if you do not want errors raised.

[Validate]