fix duplicate description= definition
This commit is contained in:
parent
6deadc731a
commit
fd4a278d3b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue