Sha256: a8ea318ab4b2aba9a87ef15ad1d693d07596f9984651664941f1dcb005b2be1e
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
module Machinist module ActiveRecord class Blueprint < Machinist::Blueprint # Make and save an object. def make!(attributes = {}) object = make(attributes) object.save! object.reload rescue ::ActiveRecord::RecordInvalid => exception message = "#{exception.class.name}: \"#{exception.message}\" saving #{exception.record.class.name}" raise Machinist::BlueprintCantSaveError.new(self, message) end def lathe_class #:nodoc: Machinist::ActiveRecord::Lathe end end end end
Version data entries
3 entries across 3 versions & 1 rubygems