Sha256: d44f740bb93eab5a3c48d75def83dbdca744e401c0bfe0e8604c47890e60c8c3

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

module <%= root_module_name %>
  # Class which hooks into Rails
  # and configures the application.
  class Railtie < ::Rails::Railtie
    initializer '<%= gem_name %>.assets' do |app|
      (ROOT_PATH / 'assets').each_child do |asset_dir|
        app.config.assets.paths << asset_dir.to_s
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amber_extension_generator-1.0.0 lib/amber_extension_generator/templates/lib/railtie.rb.erb
amber_extension_generator-0.0.5 lib/amber_extension_generator/templates/railtie.rb.erb