Fix proposal error message. Username -> name.

This commit is contained in:
Stella 2014-11-09 15:58:44 +02:00
parent 2c98ba9711
commit 2f080fb458

View file

@ -229,7 +229,7 @@ class Event < ActiveRecord::Base
def name_and_biography_exists
errors.add(:biography, "cant' be blank") if submitter.biography.blank?
errors.add(:username, " can't be blank") if submitter.name.blank?
errors.add(:name, " can't be blank") if submitter.name.blank?
end
# TODO: create a module to be mixed into model to perform same operation