Skip to content

Instantly share code, notes, and snippets.

@tsyber1an
Created November 16, 2015 08:45
Show Gist options
  • Save tsyber1an/0e77c6b931fae4460ffa to your computer and use it in GitHub Desktop.
Save tsyber1an/0e77c6b931fae4460ffa to your computer and use it in GitHub Desktop.
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