lib/card/lexicon.rb in card-1.101.3 vs lib/card/lexicon.rb in card-1.101.4

- old
+ new

@@ -34,15 +34,15 @@ cache.write cache_key(lex), card.id end def update card add card - cache.delete cache_key(card.old_lex) + cache.delete cache_key(card.lex_before_act) end # def delete card # cache.delete card.id.to_s - # cache.delete cache_key(card.old_lex) + # cache.delete cache_key(card.lex_before_act) # end def lex_to_name lex return lex unless lex&.is_a? Array lex.map { |side_id| name side_id or return }.join(Card::Name.joint).to_name