style fixes

This commit is contained in:
Stella Rouzi 2014-06-26 17:41:46 +03:00
parent fc753282d3
commit a87018192a
4 changed files with 15 additions and 9 deletions

View file

@ -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