Добавил генерацию колоды и улучшил бд
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ClashDeckGenerator2
|
||||
module Repos
|
||||
class CardsRepo < DB::Repo[:cards]
|
||||
commands :create
|
||||
|
||||
def meta_cards
|
||||
cards.meta.to_a
|
||||
cards.meta_cards_scope.to_a
|
||||
end
|
||||
|
||||
def all_cards
|
||||
cards.to_a
|
||||
end
|
||||
def all
|
||||
cards.to_a
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user