class Card::Query::ActionQuery

support CQL queries that require the card_acts table

Public Instance Methods

action_by(card) click to toggle source
# File lib/card/query/action_query.rb, line 13
def action_by card
  tie :act, { act_by: card }, { from: :card_act_id }
end
action_on(card) click to toggle source
# File lib/card/query/action_query.rb, line 22
def action_on card
  tie :card, card, from: :card_id
end
add_update_condition() click to toggle source
# File lib/card/query/action_query.rb, line 31
def add_update_condition
  add_condition "#{fld :action_type} = 1"
end
table() click to toggle source
# File lib/card/query/action_query.rb, line 5
def table
  "card_actions"
end
table_prefix() click to toggle source
# File lib/card/query/action_query.rb, line 9
def table_prefix
  "cn"
end
update_action_by(card) click to toggle source
# File lib/card/query/action_query.rb, line 17
def update_action_by card
  add_update_condition
  action_by card
end
update_action_on(card) click to toggle source
# File lib/card/query/action_query.rb, line 26
def update_action_on card
  add_update_condition
  action_on card
end