Sha256: 69f71b23740ea4dca7235f95ef9b6cc679f748a06b9841a3db40b8a5f8b2d5fd
Contents?: true
Size: 583 Bytes
Versions: 24
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module Switchman module ActiveRecord module PredicateBuilder def convert_value_to_association_ids(value, primary_key) if value.is_a?(::ActiveRecord::Base) value.send(primary_key) # needed for sharded id translation else super end end module PolymorphicArrayValue def convert_to_id(value) case value when ::ActiveRecord::Base value.send(primary_key(value)) else super end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems