strip whitespace on comments

This commit is contained in:
maxwell 2011-02-11 17:54:37 -08:00
parent 4b47de5b9e
commit c6bdbc987a

View file

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