mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-05-05 02:11:01 +09:00
When mounting to a `SCRIPT_NAME` of `/`, we were inserting an extra slash in the cable path.
8 lines
211 B
Ruby
8 lines
211 B
Ruby
module CableHelper
|
|
def script_aware_action_cable_meta_tag
|
|
tag.meta \
|
|
name: "action-cable-url",
|
|
content: Pathname(request.script_name) + Pathname(ActionCable.server.config.mount_path)
|
|
end
|
|
end
|