Sha256: 9913135f072c636d6512a70e586f40adca4424dbea5bb8492496c7a377f56aec

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

require 'admin_fu/rails/routes'

module AdminFu
  class Engine < Rails::Engine
    initializer "static assets" do |app|
      if app.config.serve_static_assets
        app.middleware.insert 0, ::ActionDispatch::Static, "#{root}/public"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_fu-0.1.0 lib/admin_fu/engine.rb