class Tradesman::Builders::Create
Private Class Methods
go(params, *context, &block)
click to toggle source
# File lib/tradesman/builders/create.rb, line 12 def go(params, *context, &block) run_and_convert_exceptions { run(params, *context, &block) } end
go!(params, *context)
click to toggle source
# File lib/tradesman/builders/create.rb, line 16 def go!(params, *context) run_and_convert_exceptions { run!(params, *context) } end
Private Instance Methods
execute_single(params)
click to toggle source
# File lib/tradesman/builders/create.rb, line 23 def execute_single(params) self.class.adapter.create!(params) end
template_class(args)
click to toggle source
# File lib/tradesman/builders/create.rb, line 6 def template_class(args) Class.new(::Tradesman::Template) do include ::Tradesman::NewRecordsMultipleExecute @store = Tradesman.adapter.context_for_entity(args[:subject]) class << self def go(params, *context, &block) run_and_convert_exceptions { run(params, *context, &block) } end def go!(params, *context) run_and_convert_exceptions { run!(params, *context) } end end private def execute_single(params) self.class.adapter.create!(params) end end end