style fixes
This commit is contained in:
parent
fc753282d3
commit
a87018192a
4 changed files with 15 additions and 9 deletions
|
|
@ -121,7 +121,7 @@ class User < ActiveRecord::Base
|
|||
private
|
||||
|
||||
def biography_limit
|
||||
errors.add(:abstract, 'cannot have more than 150 words') if !biography.nil? &&
|
||||
errors.add(:abstract, 'cannot have more than 150 words') if biography &&
|
||||
biography.split.size > 150
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue