summaryrefslogtreecommitdiff
path: root/app/uploaders/file_mover.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/uploaders/file_mover.rb')
-rw-r--r--app/uploaders/file_mover.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/uploaders/file_mover.rb b/app/uploaders/file_mover.rb
index 00c2888d224..f37567d6141 100644
--- a/app/uploaders/file_mover.rb
+++ b/app/uploaders/file_mover.rb
@@ -21,13 +21,11 @@ class FileMover
end
def update_markdown
- updated_text = model.read_attribute(update_field).gsub(temp_file_uploader.to_markdown, uploader.to_markdown)
+ updated_text = model.read_attribute(update_field)
+ .gsub(temp_file_uploader.markdown_link, uploader.markdown_link)
model.update_attribute(update_field, updated_text)
-
- true
rescue
revert
-
false
end