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

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

Instance Method Summary collapse

Instance Method Details

#create(opts) ⇒ Object



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

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

#create!(opts) ⇒ Object



26
27
28
29
30
31
32
# File 'tmpsets/set/mod002-core/all/actify.rb', line 26

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