Sha256: 83633f176e24403978b6228bddd61be03d790ff7dc09a89aa96eddbfc0b2e975

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

module Foundation
  module Rails
    module Helpers
      class Alert < Foundation::Rails::Helpers::Element

        private

        def default_attributes
          { data: { alert: true }, class: %w[alert-box] }
        end

        def close_link
          link_to("&times;".html_safe, "#", class: :close)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foundation-rails-helpers-0.0.4 lib/foundation/rails/helpers/alert.rb
foundation-rails-helpers-0.0.3 lib/foundation/rails/helpers/alert.rb
foundation-rails-helpers-0.0.2 lib/foundation/rails/helpers/alert.rb