Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

in jasminerice view, put application.js in data-main attribute rather…

… than in require args.
  • Loading branch information...
commit 7abf7fe522c6de973aa3c7e05b43c59f96271a4a 1 parent af477a9
Chris Salzberg shioyama authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/jasminerice/spec/index.html.erb
4 app/views/jasminerice/spec/index.html.erb
View
@@ -5,9 +5,9 @@
<script>
window.cfg = <%= Requirejs::Rails::Engine.config.requirejs.run_config.to_json.html_safe %>;
</script>
- <%= requirejs_include_tag %>
+ <%= requirejs_include_tag 'application' %>
<script>
- require(['application', <%= spec_files.map { |f| "'#{f.sub(/\.js$/,'')}'" }.join(',') %>]);
+ require([<%= spec_files.map { |f| "'#{f.sub(/\.js$/,'')}'" }.join(',') %>]);
</script>
<%= javascript_include_tag "jasminerice", "spec" %>
<%= csrf_meta_tags %>
Please sign in to comment.
Something went wrong with that request. Please try again.