Sha256: 415c4bd0f986da3f62153af98bb161cb2a07b43e51094a3614957f46cd727e67
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
Contents
require "will_filter" # Require all the real code require "rails" module WillFilter class Engine < Rails::Engine config.autoload_paths << File.expand_path("../../lib", __FILE__) config.autoload_paths << File.expand_path("../../lib/core_ext/**", __FILE__) config.autoload_paths << File.expand_path("../../lib/will_filter", __FILE__) config.autoload_paths << File.expand_path("../../lib/will_filter/containers", __FILE__) [ "../../lib", "../../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 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.1 | lib/will_filter/engine.rb |