class UniformNotifier::JavascriptAlert

Public Class Methods

active?() click to toggle source
# File lib/uniform_notifier/javascript_alert.rb, line 3
def self.active?
  UniformNotifier.alert
end

Protected Class Methods

_inline_notify( data ) click to toggle source
# File lib/uniform_notifier/javascript_alert.rb, line 9
def self._inline_notify( data )
  message = data.values.compact.join("\n")

  wrap_js_association "alert( #{message.inspect} );"
end