strip spaces from urls as they are assigned

This commit is contained in:
joshua stein 2013-07-19 22:07:03 -05:00
parent ccb8094da1
commit 5c0dad2c4a

View file

@ -350,7 +350,7 @@ class Story < ActiveRecord::Base
u = m[1] << (params.any?? "?" << params.join("&") : "")
end
self[:url] = u
self[:url] = u.to_s.strip
end
def url_or_comments_url