class Card::Rule::ReadRuleCache
the read rule cache, unlike the standard rule cache, is optimized for lookups based on the rules’ values, because this is needed for high-performance permission-checking
Private Class Methods
Source
# File lib/card/rule/read_rule_cache.rb, line 25 def lookup_hash rows.each_with_object({}) do |row, h| party_id = row["party_id"].to_i h[party_id] ||= [] h[party_id] << row["read_rule_id"].to_i end end