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

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

Instance Method Summary collapse

Instance Method Details

#create(opts) ⇒ Object



31
32
33
34
35
# File 'card/tmpsets/set/mod002-core/all/actify.rb', line 31

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

#create!(opts) ⇒ Object



25
26
27
28
29
# File 'card/tmpsets/set/mod002-core/all/actify.rb', line 25

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