Skip to content

Commit

Permalink
Requiring mustache and adding it to engine assets to fix precompile e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
aeschright committed May 16, 2015
1 parent 955f088 commit 8629386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/javascripts/calagator.js
Expand Up @@ -2,6 +2,7 @@
//= require jquery_ujs
//= require calagator/forms
//= require leaflet.awesome-markers
//= require mustache

$(document).ready(function(){
// Shows hidden section when a link is clicked, and hides the link.
Expand Down
2 changes: 1 addition & 1 deletion lib/calagator/engine.rb
Expand Up @@ -3,7 +3,7 @@ class Engine < ::Rails::Engine
isolate_namespace Calagator

initializer "calagator.assets.precompile" do |app|
app.config.assets.precompile += %w( markers-soft.png markers-shadow.png markers-soft@2x.png markers-shadow@2x.png leaflet.js )
app.config.assets.precompile += %w( markers-soft.png markers-shadow.png markers-soft@2x.png markers-shadow@2x.png leaflet.js mustache.js )
end
end
end

0 comments on commit 8629386

Please sign in to comment.