Module: Card::Set::All::Actify::ClassMethods

Defined in:
tmpsets/set/mod003-core/all/actify.rb

Instance Method Summary collapse

Instance Method Details

#create(opts) ⇒ Object



42
43
44
45
46
47
48
# File 'tmpsets/set/mod003-core/all/actify.rb', line 42

def create opts
  card = Card.new opts
  card.act do
    card.save
  end
  card
end

#create!(opts) ⇒ Object



34
35
36
37
38
39
40
# File 'tmpsets/set/mod003-core/all/actify.rb', line 34

def create! opts
  card = Card.new opts
  card.act do
    card.save!
  end
  card
end