Method: Jinx::Dependency#dependent_attribute

Defined in:
lib/jinx/metadata/dependency.rb

#dependent_attribute(klass) ⇒ Symbol?

Returns the attribute which references the dependent type, or nil if none.

Parameters:

  • klass (Class)

    the dependent type

Returns:

  • (Symbol, nil)

    the attribute which references the dependent type, or nil if none



54
55
56
# File 'lib/jinx/metadata/dependency.rb', line 54

def dependent_attribute(klass)
  most_specific_domain_attribute(klass, dependent_attributes)
end