3354: Rename render_content_from_database helper to render_markup, as a more directly...
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index d2f4ed44b240990b5c611c34d0103a478924c7f4..aaf1ae0cb181a41b3ded4d55e46e41a2b058431e 100644 (file)
@@ -205,7 +205,7 @@ class ApplicationController < ActionController::Base
       f.json do
         extra_attrs = { href: url_for(action: :show, id: @object) }
         @object.textile_attributes.each do |textile_attr|
-          extra_attrs.merge!({ "#{textile_attr}Textile" => view_context.render_content_from_database(@object.attributes[textile_attr]) })
+          extra_attrs.merge!({ "#{textile_attr}Textile" => view_context.render_markup(@object.attributes[textile_attr]) })
         end
         render json: @object.attributes.merge(extra_attrs)
       end