Sha256: d664a18e42163049108ec91b7f370167690f40c19da4223d68b25773147aa3cb

Contents?: true

Size: 258 Bytes

Versions: 9

Compression:

Stored size: 258 Bytes

Contents

module UniformNotifier
  class JavascriptAlert < Base
    def self.active?
      UniformNotifier.alert
    end

    def self.inline_notify( message )
      return unless self.active?

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
uniform_notifier-1.5.0 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.4.0 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.3.0 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.2.0 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.1.1 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.1.0 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.0.2 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.0.1 lib/uniform_notifier/javascript_alert.rb
uniform_notifier-1.0.0 lib/uniform_notifier/javascript_alert.rb