Sha256: 7ea40061443fad7a684047bca065530b7a2aff042c567788f816834756dfe492
Contents?: true
Size: 456 Bytes
Versions: 12
Compression:
Stored size: 456 Bytes
Contents
module BridgeCache class ProgramItem < BridgeBaseModel extend BridgeCache::Data::BridgeModel belongs_to :program, foreign_key: :program_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Program.name, optional: true def self.for_domain(domain_id) joins(:program).merge(BridgeCache::Program.for_domain(domain_id)) end def self.unique_column_names %w[bridge_id] end end end
Version data entries
12 entries across 12 versions & 1 rubygems