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

Commit 95fb286

Browse files
author
Barrie Hadfield
committed
uses action_cable, added JQuery
1 parent d203aa9 commit 95fb286

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/generators/hyperloop/install_generator.rb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ def create_hyperloop_directories
2525

2626
def create_policies_directory
2727
create_file 'app/policies/application_policy.rb', <<-RUBY
28-
# app/policies/application_policy
28+
# app/policies/application_policy
2929
30-
# Policies regulate access to your public models
31-
# The following policy will open up full access (but only in development)
32-
# The policy system is very flexible and powerful. See the documentation
33-
# for complete details.
30+
# Policies regulate access to your public models
31+
# The following policy will open up full access (but only in development)
32+
# The policy system is very flexible and powerful. See the documentation
33+
# for complete details.
3434
class Hyperloop::ApplicationPolicy
3535
# Allow any session to connect:
3636
always_allow_connection
@@ -44,13 +44,14 @@ class Hyperloop::ApplicationPolicy
4444

4545
def create_initializer
4646
create_file 'config/initializers/hyperloop.rb', <<-RUBY
47-
47+
# config/initializers/hyperloop.rb
48+
# If you are not using ActionCable, see http://ruby-hyperloop.io/docs/models/configuring-transport/
4849
Hyperloop.configuration do |config|
49-
config.transport = :simple_poller
50+
config.transport = :action_cable
51+
config.import 'reactrb/auto-import'
5052
end
5153
5254
RUBY
53-
5455
end
5556

5657
def add_gems

0 commit comments

Comments
 (0)