Sha256: 0d4002bdd6833c26afdb42a6c5a7eea244129cee087a200a6a71f5f2a620a384

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

module Machinist::ActiveRecord
  class Blueprint < Machinist::Blueprint

    # Make and save an object.
    def make!(attributes = {})
      object = make(attributes)
      object.save!
      object.reload
    end

    def lathe_class #:nodoc:
      Machinist::ActiveRecord::Lathe
    end

  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
machinist-2.0 lib/machinist/active_record/blueprint.rb
indirect-machinist-2.0.0.beta3 lib/machinist/active_record/blueprint.rb