Module: InverseOf::Associations::HasManyAssociation

Defined in:
lib/inverse_of.rb

Instance Method Summary collapse

Instance Method Details

#we_can_set_the_inverse_on_this?(record) ⇒ Boolean

Returns:

  • (Boolean)


177
178
179
180
# File 'lib/inverse_of.rb', line 177

def we_can_set_the_inverse_on_this?(record)
  inverse = @reflection.inverse_of
  return !inverse.nil?
end