strip comment text upon comment creation

This commit is contained in:
Zach Prezkuta 2012-06-07 09:51:25 -06:00
parent 260a116e87
commit ed51f34ebb

View file

@ -81,7 +81,7 @@ class Comment < ActiveRecord::Base
end end
def initialize(person, target, text) def initialize(person, target, text)
@text = text @text = text.strip # remove leading and trailing whitespace now, otherwise it can cause signature issues
super(person, target) super(person, target)
end end