Sha256: 957faae76f30b4e93122eda999173810e81a7e4ab0093bbb4484ca60da93f291

Contents?: true

Size: 734 Bytes

Versions: 3

Compression:

Stored size: 734 Bytes

Contents

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

module WillFilter
  class Engine < Rails::Engine
    [
     "../../lib/core_ext/**",
     "../../lib/will_filter",
     "../../lib/will_filter/containers"
    ].each do |dir|
        Dir[File.expand_path("#{File.dirname(__FILE__)}/#{dir}/*.rb")].sort.each do |file|
          require(file)
        end
    end
    require(File.expand_path("#{File.dirname(__FILE__)}/../../lib/application_helper.rb"))

    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

3 entries across 3 versions & 1 rubygems

Version Path
will_filter-3.0.5 lib/will_filter/engine.rb
will_filter-3.0.4 lib/will_filter/engine.rb
will_filter-3.0.3 lib/will_filter/engine.rb