strip whitespace on comments
This commit is contained in:
parent
4b47de5b9e
commit
c6bdbc987a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue