Sha256: 1c36c8f0a25a3af6dc230b79cfc39e8ee7ded5a34b158ff5a0cc86ecdc2363d1
Contents?: true
Size: 467 Bytes
Versions: 6
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true class UniformNotifier class JavascriptAlert < Base def self.active? !!UniformNotifier.alert end protected def self._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
Version data entries
6 entries across 6 versions & 1 rubygems