Sha256: 0fdbaa8326565cd0dcf26a09252df10fd2198e73d9335e13bf72542b09766f9c

Contents?: true

Size: 253 Bytes

Versions: 2

Compression:

Stored size: 253 Bytes

Contents

module MongoBrowser
  module Middleware
    class SprocketsBase
      def call(env)
        return @app.call(env) unless @matcher =~ env["PATH_INFO"]
        env["PATH_INFO"].sub!(@matcher, "")
        @environment.call(env)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo_browser-0.2.5 lib/mongo_browser/middleware/sprockets_base.rb
mongo_browser-0.2.0.rc2 lib/mongo_browser/middleware/sprockets_base.rb