Sha256: 5d880fe415320a443b528aba6c13a8e589eafeee235061be8e7958c9ec4c8894

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

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

      def self.inline( notice )
        return '' unless self.active?

        JavascriptHelpers::wrap_js_association "alert( #{notice.standard_notice.inspect} ); "
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bullet-2.0.0.rc2 lib/bullet/presenter/javascript_alert.rb
bullet-2.0.0.rc1 lib/bullet/presenter/javascript_alert.rb
bullet-2.0.0.beta.4 lib/bullet/presenter/javascript_alert.rb
bullet-2.0.0.beta.3 lib/bullet/presenter/javascript_alert.rb