Skip to content

Instantly share code, notes, and snippets.

@joliss
Created June 3, 2012 14:27
Show Gist options
  • Save joliss/2863733 to your computer and use it in GitHub Desktop.
Save joliss/2863733 to your computer and use it in GitHub Desktop.
Auto-switching between prod and dev Ember version. The JS files in the custom-ember directory are symlinks to ../../../ember.js/dist/ember.prod.js etc., where ember.js is a submodule.
<% require_asset 'custom-ember/handlebars' %>
<% if Rails.env.production? %>
<% require_asset 'custom-ember/ember.prod' %>
<% require_asset 'custom-ember/ember-data.prod' %>
<% else %>
<% require_asset 'custom-ember/ember' %>
<% require_asset 'custom-ember/ember-data' %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment