Permalink
Browse files

Merge commit 'a0cc3008f2e411aee2ab0916f8f68cdbded68d42' into HEAD

  • Loading branch information...
2 parents cc897f5 + a0cc300 commit f3e30cecb7521fec951c4aea266e4cc96b7a7f14 Jenkins committed Oct 16, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/validations.rb
View
@@ -174,16 +174,4 @@ def self.validate_organisation_or_other_is_entered(form_data)
end
end
- def self.validate_file_type(field_name, file_type)
- @@errors ||= {}
- valid = false
- type = file_type.split("/")
-
- if @valid_file_type[type[0]] && (type[1] =~ @valid_file_type[type[0]])
- valid = true
- else
- @@errors[field_name] = "Only text, word and pdf file allowed."
- end
- valid
- end
end

0 comments on commit f3e30ce

Please sign in to comment.