Sha256: c8b7b55ceb9f6f60d6900c7aa67a5c28f7e632f2348836665a1a5a461ed5b2e9
Contents?: true
Size: 676 Bytes
Versions: 4
Compression:
Stored size: 676 Bytes
Contents
module AmpHelper class AmpHelperGenerator < Rails::Generators::Base desc 'Initialize AmpHelper' def create_initializer_file initializer 'amp_helper.rb' do <<-FILE.strip_heredoc AmpHelper.configure do |config| # Enable amp image. # Default: true # config.enable_amp_image = true # Configure ratina version name format For CarrierWave::Uploader # Default: nil # config.format_2x = '%s_2x' # Enable amp cache link. # Default: true # config.enable_amp_link = Rails.env.production? end FILE end end end end
Version data entries
4 entries across 4 versions & 1 rubygems