class Card::Query::ActQuery
support CQL queries that require the card_acts table
Public Instance Methods
act_by(card)
click to toggle source
# File lib/card/query/act_query.rb, line 21 def act_by card tie :card, card, from: :actor_id end
action_on(card)
click to toggle source
# File lib/card/query/act_query.rb, line 13 def action_on card tie :action, { action_on: card }, { to: :card_act_id } end
table()
click to toggle source
# File lib/card/query/act_query.rb, line 5 def table "card_acts" end
table_prefix()
click to toggle source
# File lib/card/query/act_query.rb, line 9 def table_prefix "cx" end
update_action_on(card)
click to toggle source
# File lib/card/query/act_query.rb, line 17 def update_action_on card tie :action, { update_action_on: card }, { to: :card_act_id } end