Sha256: 7b6d5c780a253eea7c2e978a9d70cd7a8cc397616063d59378bdb62f8170035f

Contents?: true

Size: 514 Bytes

Versions: 3

Compression:

Stored size: 514 Bytes

Contents

module PushRoutes
  module Helpers
    def push_routes_init debug_string = ""
      out = ""
      out += javascript_include_tag 'socket.io'
      out += javascript_include_tag 'push_routes_socket_io'
      out += javascript_tag "PushRoutes.connect({server: \"#{PushRoutes.NODE_URL}\", id: #{current_user.id}, authentication_token: \"#{current_user.authentication_token}\"}, function() {
      							PushRoutes.set_debug_string(\"#{debug_string}\");
      							});"
      return out.html_safe
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
push_routes-0.0.8 lib/push_routes/helpers.rb
push_routes-0.0.7 lib/push_routes/helpers.rb
push_routes-0.0.6 lib/push_routes/helpers.rb