Classes: Document
7 8 9 10 11
# File 'lib/nifval.rb', line 7 def validate_each(record, attribute, value) if value.nil? || !Document.new(value).valid? record.errors.add(attribute, I18n.t("nifval.wrong")) end end