Sha256: 12d2115c351b1895ada025595f2529f538dd79b0255271d03520d80dc70e0fab
Contents?: true
Size: 501 Bytes
Versions: 12
Compression:
Stored size: 501 Bytes
Contents
module Graphiti module Adapters module ActiveRecord module 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 end end end
Version data entries
12 entries across 12 versions & 1 rubygems