mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix new user bug
This commit is contained in:
parent
2f8099b7f5
commit
12b56a436a
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class Person < ActiveRecord::Base
|
|||
|
||||
private
|
||||
def biography_limit
|
||||
if self.biography.split.size > 150
|
||||
if !self.biography.nil? && self.biography.split.size > 150
|
||||
errors.add(:abstract, "cannot have more than 150 words")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue