Module: FactoryGirl::Syntax::Make::MongoMapper::ClassMethods

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#make(overrides = {}) ⇒ Object



61
62
63
# File 'lib/factory_girl/syntax/mongo_mapper.rb', line 61

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

#make!(overrides = {}) ⇒ Object



65
66
67
# File 'lib/factory_girl/syntax/mongo_mapper.rb', line 65

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