Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
Fix bug with JS order in embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi committed Jan 24, 2012
1 parent 4f4749e commit 49cc9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/event.rb
Expand Up @@ -65,7 +65,7 @@ def render
def rendered_embeds
embeds = {}
self.embed_templates.each do |embed_template|
data = self.template_data.merge({"head_assets" => HEAD_ASSETS, "body_assets" => BODY_ASSETS + self.script_id})
data = self.template_data.merge({"head_assets" => HEAD_ASSETS, "body_assets" => self.script_id + BODY_ASSETS})
embeds[embed_template.slug] = preprocess_template(embed_template).render_with(data)
end
embeds
Expand Down

0 comments on commit 49cc9ab

Please sign in to comment.