Sha256: 04086a9e01cbe701ebdaa0f6deecf840c18d8f8278247369816dca2ba563ee07

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

require 'font_assets/middleware'

module FontAssets
  class Railtie < Rails::Railtie
    config.font_assets = ActiveSupport::OrderedOptions.new

    initializer "font_assets.configure_rails_initialization" do |app|
      config.font_assets.origin ||= "*"

      app.middleware.insert_before 'ActionDispatch::Static', FontAssets::Middleware, config.font_assets.origin
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
font_assets-0.1.1 lib/font_assets/railtie.rb
font_assets-0.1.0 lib/font_assets/railtie.rb