Sha256: 34aa5ad366a9a5e22f39b252f67774a6b228e09cea76b00485995afb08c2e42b
Contents?: true
Size: 371 Bytes
Versions: 18
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true module ActiveRecord class TableMetadata # :nodoc: def associated_with?(table_name) # CPK # klass&._reflect_on_association(table_name) || klass&._reflect_on_association(table_name.singularize) klass&._reflect_on_association(table_name) || klass&._reflect_on_association(table_name.to_s.singularize) end end end
Version data entries
18 entries across 18 versions & 1 rubygems