module Crm::Helpers::Validators::CrmValidatorHelper

Protected Instance Methods

crm_attribute_definition(record, attribute) click to toggle source
# File lib/crm/helpers/validators/crm_validator_helper.rb, line 13
def crm_attribute_definition(record, attribute)
  crm_type_definition(record)[attribute]
end
crm_type_definition(record) click to toggle source
# File lib/crm/helpers/validators/crm_validator_helper.rb, line 9
def crm_type_definition(record)
  record.class.try(:crm_attributes) || {}
end