Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit d203aa9

Browse files
author
Barrie Hadfield
committed
requiring JQuery
1 parent cceaa91 commit d203aa9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/generators/hyperloop/install_generator.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ class InstallGenerator < Rails::Generators::Base
55
def inject_react_file_js
66
append_file 'app/assets/javascripts/application.js' do
77
<<-'JS'
8+
//= require jquery
9+
//= require jquery_ujs
810
//= require hyperloop-loader
911
JS
1012
end
@@ -42,7 +44,7 @@ class Hyperloop::ApplicationPolicy
4244

4345
def create_initializer
4446
create_file 'config/initializers/hyperloop.rb', <<-RUBY
45-
47+
4648
Hyperloop.configuration do |config|
4749
config.transport = :simple_poller
4850
end

0 commit comments

Comments
 (0)