fix duplicate description= definition

This commit is contained in:
joshua stein 2012-11-13 11:39:50 -06:00
parent 6deadc731a
commit fd4a278d3b

View file

@ -272,7 +272,8 @@ class Story < ActiveRecord::Base
end
def description=(desc)
self[:description] = desc.to_s.rstrip
# TODO: remove remove_mb4 hack
self[:description] = desc.to_s.remove_mb4.rstrip
self.markeddown_description = self.generated_markeddown_description
end
@ -316,11 +317,6 @@ class Story < ActiveRecord::Base
self[:url] = u
end
# TODO: remove remove_mb4 hack
def description=(d)
self[:description] = d.to_s.remove_mb4
end
def title=(t)
# change unicode whitespace characters into real spaces
# TODO: remove remove_mb4 hack