Module: FactoryGirl::Syntax::Make::ActiveRecord::ClassMethods

Defined in:
lib/factory_girl/syntax/make.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#make(overrides = {}) ⇒ Object



30
31
32
# File 'lib/factory_girl/syntax/make.rb', line 30

def make(overrides = {})
  FactoryGirl.factory_by_name(name.underscore).run(Proxy::Build, overrides)
end

#make!(overrides = {}) ⇒ Object



34
35
36
# File 'lib/factory_girl/syntax/make.rb', line 34

def make!(overrides = {})
  FactoryGirl.factory_by_name(name.underscore).run(Proxy::Create, overrides)
end