Module: Pusher::IO::ViewHelpers

Defined in:
lib/pusher.io/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#pusher_io_socket_clientObject



10
11
12
# File 'lib/pusher.io/view_helpers.rb', line 10

def pusher_io_socket_client
  javascript_include_tag Pusher::IO.socket_js_uri
end

#pusher_io_socket_uriObject



14
15
16
# File 'lib/pusher.io/view_helpers.rb', line 14

def pusher_io_socket_uri
  tag :meta, name: 'socket_uri', content: Pusher::IO.socket_uri
end

#pusher_io_tagsObject



3
4
5
6
7
8
# File 'lib/pusher.io/view_helpers.rb', line 3

def pusher_io_tags
  [
    pusher_io_socket_uri,
    pusher_io_socket_client
  ].join.html_safe
end