Sha256: bc8d2bc85b192d39f0591168b7364ea47b11a4d0df3cfc17297002da7adbd430

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 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 ||= "*"
      config.font_assets.options ||= { allow_ssl: true }

      app.middleware.insert_before 'Rack::Runtime', FontAssets::Middleware, config.font_assets.origin
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
font_assets-0.1.9 lib/font_assets/railtie.rb