Module: Switchman::ActiveRecord::Reflection::AssociationReflection

Defined in:
lib/switchman/active_record/reflection.rb

Instance Method Summary collapse

Instance Method Details

#join_id_for(owner) ⇒ Object



40
41
42
# File 'lib/switchman/active_record/reflection.rb', line 40

def join_id_for(owner)
  owner.send(join_foreign_key) # use sharded id values in association binds
end