File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
railties/lib/rails/generators
rails/app/templates/config/environments Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,10 @@ def skip_active_storage? # :doc:
345
345
options [ :skip_active_storage ]
346
346
end
347
347
348
+ def skip_action_cable? # :doc:
349
+ options [ :skip_action_cable ]
350
+ end
351
+
348
352
def skip_action_mailer? # :doc:
349
353
options [ :skip_action_mailer ]
350
354
end
Original file line number Diff line number Diff line change @@ -80,9 +80,11 @@ Rails.application.configure do
80
80
# Annotate rendered view with file names.
81
81
# config.action_view.annotate_rendered_view_with_filenames = true
82
82
83
+ <%- unless skip_action_cable? -%>
83
84
# Uncomment if you wish to allow Action Cable access from any origin.
84
85
# config.action_cable.disable_request_forgery_protection = true
85
86
87
+ <%- end -%>
86
88
# Raise error when a before_action's only/except options reference missing actions
87
89
config.action_controller.raise_on_missing_callback_actions = true
88
90
end
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Rails.application.configure do
45
45
config.active_storage.service = :local
46
46
47
47
<%- end -%>
48
- <%- unless options[: skip_action_cable] -%>
48
+ <%- unless skip_action_cable? -%>
49
49
# Mount Action Cable outside main process or domain.
50
50
# config.action_cable.mount_path = nil
51
51
# config.action_cable.url = "wss://example.com/cable"
You can’t perform that action at this time.
0 commit comments