Sha256: 6e9f7fa1aedbac1a90ac847ee9d253809a1345eb1ebfde896925ea2004af3e9f

Contents?: true

Size: 253 Bytes

Versions: 2

Compression:

Stored size: 253 Bytes

Contents

require 'carrierwave'
require 'fastimage'
require 'amp_helper/amp_image_tag_helper'

module AmpHelper
  class Railtie < Rails::Railtie
    initializer 'image_tag.helper' do |app|
      ActionView::Base.send :include, AmpImageTagHelper
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amp_helper-0.1.2 lib/amp_helper/railtie.rb
amp_helper-0.1.1 lib/amp_helper/railtie.rb