module Realtime::ViewHelpers

Public Instance Methods

realtime_message_console_logger() click to toggle source
# File lib/realtime/view_helpers.rb, line 25
def realtime_message_console_logger
  ActiveSupport::Deprecation.warn("'realtime_message_console_logger' is deprecated, "\
                                  "please refer to the documentation for details.")
  return render(template: "realtime/realtime_message_console_logger",
                layout: nil,
                locals: {}).to_s
end
realtime_message_handler() click to toggle source
# File lib/realtime/view_helpers.rb, line 17
def realtime_message_handler
  ActiveSupport::Deprecation.warn("'realtime_message_handler' is deprecated, "\
                                  "please refer to the documentation for details.")
  return render(template: "realtime/realtime_message_handler",
                layout: nil,
                locals: {}).to_s
end
realtime_support(args = {}) click to toggle source
# File lib/realtime/view_helpers.rb, line 4
def realtime_support(args = {})
  async = args[:async] ? 'async_' : ''
  return render(template: "realtime/#{async}realtime_support",
                layout: nil,
                locals:
                { realtime_token: @realtime_token,
                  realtime_domain: @realtime_domain,
                  realtime_server_url: @realtime_server_url,
                  realtime_user_id: @realtime_user_id,
                  message_handler: args[:message_handler],
                  message_console_logger: args[:message_console_logger] }).to_s
end