Module: DBViewCTI::Model::CTI::AssociationValidations
- Extended by:
- ActiveSupport::Concern
- Included in:
- DBViewCTI::Model::CTI
- Defined in:
- lib/db_view_cti/model/cti/association_validations.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#cti_validate_associations ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/db_view_cti/model/cti/association_validations.rb', line 13 def cti_validate_associations return_value = true self.class.cti_association_proxies.each_key do |proxy_name| proxy = instance_variable_get(proxy_name) if proxy && !proxy.valid? errors..merge!(proxy.errors.) return_value = false end end return_value end |