Sha256: 026185a51efd73f848b45f18abe76c4e92b2628919d11358cb73d3628b08d40e

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

require 'carrierwave'
require 'fastimage'
require 'amp_helper/configuration'
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

    generators do
      require 'amp_helper/generator.rb'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amp_helper-0.1.3 lib/amp_helper/railtie.rb