Sha256: c817b2d1fc316d1a807150420aa25907e7580aae115cba6019f899f860f1ddaa
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require 'machinist/active_record' # takes care of # Validation failed: Email has already been taken (ActiveRecord::RecordInvalid) Machinist.configure do |config| config.cache_objects = false end Admin.blueprint do email { 'admin@example.com' } password { 'password' } password_confirmation { 'password' } end Settings.blueprint do # Attributes here end Entry.blueprint do title { 'My awesome blog entry' } body { 'This is the body of my awesome blog entry' } published_at { Time.now } draft { false } end Entry.blueprint(:published) do draft { false } end Comment.blueprint do # Attributes here end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jabe-0.5.6 | test/dummy/features/support/blueprints.rb |
jabe-0.5.5 | test/dummy/features/support/blueprints.rb |
jabe-0.5.4 | test/dummy/features/support/blueprints.rb |