Sha256: edc9724e5f0e07bfc2b72587ae337cddcd1dc0ea6733030807ddfb9a80629b81

Contents?: true

Size: 443 Bytes

Versions: 4

Compression:

Stored size: 443 Bytes

Contents

require 'carrierwave'
require 'fastimage'
require 'amp_helper/configuration'
require 'amp_helper/amp_image_tag_helper'
require 'amp_helper/amp_link_to_helper'

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
amp_helper-1.0.0.pre.4 lib/amp_helper/railtie.rb
amp_helper-1.0.0.pre.3 lib/amp_helper/railtie.rb
amp_helper-1.0.0.pre.2 lib/amp_helper/railtie.rb
amp_helper-1.0.0.pre.1 lib/amp_helper/railtie.rb