From c6bdbc987a49f3955922d7a12be5d8d1e6bd35d3 Mon Sep 17 00:00:00 2001 From: maxwell Date: Fri, 11 Feb 2011 17:54:37 -0800 Subject: [PATCH] strip whitespace on comments --- app/models/comment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/comment.rb b/app/models/comment.rb index f4298d14e..da6711d65 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -27,6 +27,7 @@ class Comment < ActiveRecord::Base serialize :youtube_titles, Hash before_save do get_youtube_title text + self.text.strip! unless self.text.nil? end def diaspora_handle person.diaspora_handle