FIX: Use #dup instead of #+@ since content could be an instance of Nokogiri::XML::Element.
This commit is contained in:
parent
74d78e3636
commit
50afe59306
|
@ -37,7 +37,7 @@ class TopicEmbed < ActiveRecord::Base
|
|||
contents = first_paragraph_from(contents)
|
||||
end
|
||||
contents ||= ''
|
||||
contents = +contents << imported_from_html(url)
|
||||
contents = contents.dup << imported_from_html(url)
|
||||
|
||||
url = normalize_url(url)
|
||||
|
||||
|
|
Loading…
Reference in New Issue