strip comment text upon comment creation
This commit is contained in:
parent
260a116e87
commit
ed51f34ebb
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class Comment < ActiveRecord::Base
|
|||
end
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue