Skip to content

Commit 1a630e2

Browse files
committed
Update application.js
1 parent 9fa5ad3 commit 1a630e2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/assets/javascripts/application.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
1111
// about supported directives.
1212

13-
// Need to be on top to allow Poltergeist test to work with React: es5-shim/es5-shim. This is lincluded in app-bundle.
14-
//= require react_on_rails
15-
1613
// It is important that generated/vendor-bundle must be before bootstrap since it is exposing jQuery and jQuery-ujs
1714
//= require generated/vendor-bundle
1815
//= require generated/app-bundle
1916

17+
// Must go after the vendor-bundle, b/c vendor-bundle has jQuery.
2018
//= require bootstrap-sprockets
19+
2120
//= require turbolinks
2221

22+
//= require react_on_rails
23+
24+
// TODO: move to this separate file.
2325
$(document).on('ready page:load', function () {
2426
$('nav a').parents('li,ul').removeClass('active');
2527
$('nav a[href="' + this.location.pathname + '"]').parents('li,ul').addClass('active');

0 commit comments

Comments
 (0)