minor cleanup

This commit is contained in:
Mike Slemmer 2012-11-08 22:29:05 -08:00
parent 1881718eb9
commit 27fb2f3ceb
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ module JamRuby
validates_confirmation_of :password, :if => :should_validate_password?
def online
@online = !self.connections.nil? && self.connections.size > 0
return @online
@online ||= !self.connections.nil? && self.connections.size > 0
end
def photo_url