Created
November 16, 2015 08:45
-
-
Save tsyber1an/0e77c6b931fae4460ffa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Factory.instance_eval do | |
def create_without_callbacks(factory_name, options = {}, &block) | |
factory = Factory.build(factory_name, options, &block) | |
factory.send(:create_without_callbacks) | |
factory | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment