Sha256: 526b14c2023664ad475dda0ebd4345a0dea76f56047c133378577d21d6591ee3

Contents?: true

Size: 517 Bytes

Versions: 23

Compression:

Stored size: 517 Bytes

Contents

class Card
  module Query
    # support CQL queries that require the card_acts table
    class ActQuery < AbstractQuery
      def table
        "card_acts"
      end

      def table_prefix
        "cx"
      end

      def action_on card
        tie :action, { action_on: card }, { to: :card_act_id }
      end

      def update_action_on card
        tie :action, { update_action_on: card }, { to: :card_act_id }
      end

      def act_by card
        tie :card, card, from: :actor_id
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
card-1.108.1 lib/card/query/act_query.rb
card-1.108.0 lib/card/query/act_query.rb
card-1.107.0 lib/card/query/act_query.rb
card-1.106.0 lib/card/query/act_query.rb
card-1.105.6 lib/card/query/act_query.rb
card-1.105.5 lib/card/query/act_query.rb
card-1.105.4 lib/card/query/act_query.rb
card-1.105.3 lib/card/query/act_query.rb
card-1.105.2.pre1 lib/card/query/act_query.rb
card-1.105.2 lib/card/query/act_query.rb
card-1.105.1 lib/card/query/act_query.rb
card-1.105.0 lib/card/query/act_query.rb
card-1.104.2 lib/card/query/act_query.rb
card-1.104.1 lib/card/query/act_query.rb
card-1.104.0 lib/card/query/act_query.rb
card-1.103.4 lib/card/query/act_query.rb
card-1.103.3 lib/card/query/act_query.rb
card-1.103.2 lib/card/query/act_query.rb
card-1.103.1 lib/card/query/act_query.rb
card-1.103.0 lib/card/query/act_query.rb