Seeking Ruby-on-Rails help to modify this Forum's code


The website uses a piece of software called Discourse. One of the features of Discourse is to be able to embed comments on a topic in another web page. We’re using this on Discuss to provide a comment section for pages on

The default implementation of this copies the main body of the target web page as the first post on a topic. We need an option added to the JavaScript fragment that is a toggle for including the main body. By way of example, the configuration portion of the JavaScript for embedding Discourse would look like this:

DiscourseEmbed = { discourseUrl: '',
                     discourseEmbedUrl: '',
                     discourseEmbedBody: False };

Discourse is written as Ruby-on-Rails, and I think the code doing the embedding is located here:

Is there someone that knows Ruby-on-Rails that could modify Discourse (via plugin or contributing code to the mainstream project) that could address this?


(Posted to as FOLIO-344.)