Sha256: 34ab631033530d0144d06779e1142383278f0487827df7a4ee8450beaefe761f

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require "will_filter" # Require all the real code
require "rails"

module WillFilter
  class Engine < Rails::Engine
    initializer "static assets" do |app|
      # app.middleware.use ActionDispatch::Static, "#{root}/public" # Old way, does not work in production
      app.middleware.insert_after ActionDispatch::Static, ActionDispatch::Static, "#{root}/public"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
will_filter-3.0.0 lib/will_filter/engine.rb