Prevent loading of things twice when in production

This commit is contained in:
R. Tyler Croy 2012-04-12 23:21:38 -07:00
parent db11039603
commit 02ae3785b1
1 changed files with 6 additions and 1 deletions

View File

@ -24,5 +24,10 @@
%br/
%div.projects
= embed_amber(:on_ready => "smalltalk.DespairApp._current()._bootstrap_('#{user}');")
- if Resin.development?
= embed_amber(:on_ready => "smalltalk.DespairApp._current()._bootstrap_('#{user}');")
- else
%script{:type => 'text/javascript', :src => '/js/resin-app.deploy.js'}
%script{:type => 'text/javascript'}
smalltalk.DespairApp._current()._bootstrap_("#{user}");