Sha256: f23ef4e6b05ab53843efc5ba8c8fc32773060393fdcd31f76c2a4a32927a5928
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true class UniformNotifier class JavascriptAlert < Base class << self def active? !!UniformNotifier.alert end protected def _inline_notify(data) message = data.values.compact.join("\n") options = UniformNotifier.alert.is_a?(Hash) ? UniformNotifier.alert : {} script_attributes = options[:attributes] || {} wrap_js_association "alert( #{message.inspect} );", script_attributes end end end end
Version data entries
4 entries across 4 versions & 1 rubygems