Sha256: 5db4fa3356bc1d2080b4c026bbfea1f7b83392a85f3c40e873ee37cc19df2ea9
Contents?: true
Size: 381 Bytes
Versions: 54
Compression:
Stored size: 381 Bytes
Contents
module Graphiti::Adapters::ActiveRecord::Inferrence # If going AR to AR, use AR introspection # If going AR to PORO, fall back to normal inferrence def infer_foreign_key parent_model = parent_resource_class.model reflection = parent_model.reflections[association_name.to_s] if reflection reflection.foreign_key.to_sym else super end end end
Version data entries
54 entries across 54 versions & 1 rubygems