method

new

rails latest stable - Class: Rails::Rack::Static

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

new(app)
public

No documentation available.

# File railties/lib/rails/rack/static.rb, line 8
      def initialize(app)
        @app = app
        @file_server = ::Rack::File.new(File.join(RAILS_ROOT, "public"))
      end