module Switchman::ActiveRecord::PredicateBuilder

Public Instance Methods

convert_value_to_association_ids(value, primary_key) click to toggle source
Calls superclass method
# File lib/switchman/active_record/predicate_builder.rb, line 6
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