Merge pull request #534 from differentreality/proposal_error_msg_name
Fix proposal error message. Username -> name.
This commit is contained in:
commit
aa37534ee1
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ class Event < ActiveRecord::Base
|
||||||
|
|
||||||
def name_and_biography_exists
|
def name_and_biography_exists
|
||||||
errors.add(:biography, "cant' be blank") if submitter.biography.blank?
|
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
|
end
|
||||||
|
|
||||||
# TODO: create a module to be mixed into model to perform same operation
|
# TODO: create a module to be mixed into model to perform same operation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue