Removed not needed valid check.

This commit is contained in:
Martin Edenhofer 2012-10-15 07:55:04 +02:00
parent 8359cf4665
commit e9fec1aa4f

View file

@ -77,7 +77,6 @@ class Store < ActiveRecord::Base
class File < ActiveRecord::Base
before_validation :add_md5
validates :name, :presence => true
private
def add_md5