Module: Realtime::ViewHelpers

Defined in:
lib/realtime/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#realtime_message_console_loggerObject



25
26
27
28
29
30
31
# 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_handlerObject



17
18
19
20
21
22
23
# 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 = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# 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