b0VIM 7.3nUwqterryTerryMacBookPro.local~terry/sites/morse_fields_validator/lib/fields_validator.rbutf-8 3210#"! Utp#ad ^ #zts_:n2*) = p h b ^ enend end end self.class.required_databasend end end self.class.required_database_fields.each { |rdf| errors_add(rdf, "does not have a column in the database.") unless self.class.column_names.include?(rdf)} if self.class.required_database_fields.any? if self.class.required_database_fields and self.class.required_database_fields.any? def validate_column_names private end end (defined?(super) and super.is_a?(Array)) ? super : [] def required_database_fields end (defined?(super) and super.is_a?(Array)) ? super : [] def required_attributes end end end validates a.to_sym, presence: true required_attributes.each do |a| if required_attributes and required_attributes.any? def validate_required_attributes class_methods do end validate :validate_column_names if respond_to?(:validate) included do extend ActiveSupport::Concernmodule FieldsValidator