Sha256: 029408a46e150874a03d7b23d081fa33ffddd070b22ccf30bf01ca662ef329e4

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

require "image_tag_silent_alt/version"
require "action_view"

module ImageTagSilentAlt
  module ActionViewExtensions

      def image_tag(source, options = {})
        options.symbolize_keys!
        options[:alt] ||= ''
        super
      end

  end
end

ActionView::Base.send :include, ImageTagSilentAlt::ActionViewExtensions

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
image_tag_silent_alt-0.0.2 lib/image_tag_silent_alt.rb
image_tag_silent_alt-0.0.1 lib/image_tag_silent_alt.rb