mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
due to travis error message: can't modify frozen string
This commit is contained in:
parent
9cf68c99b7
commit
1a52dba3af
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class SearchObserver < ActiveRecord::Observer
|
|||
end
|
||||
|
||||
def self.update_posts_index(post_id, cooked, title, category)
|
||||
search_data = scrub_html_for_search(cooked) << " " << title.force_encoding('UTF-8')
|
||||
search_data = scrub_html_for_search(cooked) << " " << title.dup.force_encoding('UTF-8')
|
||||
search_data << " " << category if category
|
||||
update_index('post', post_id, search_data)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue