Module: ValidatableAssociations::Association

Included in:
ValidatableAssociations
Defined in:
lib/validatable_associations/association.rb

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Returns whether the validations of this model and all associated models passed successfully.

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/validatable_associations/association.rb', line 6

def valid?
  validate_associations
  super && associations_valid?
end