Sha256: c2f9528f045c77d6a648d2d7c97c0d3822e1f480d29a16107a88d1dacc076cd5
Contents?: true
Size: 294 Bytes
Versions: 1
Compression:
Stored size: 294 Bytes
Contents
module CodeBuddy class ShowApp def initialize(app) @app = app end def call(env) if env['PATH_INFO'] =~ /^\/code_buddy(.*)/ && Rails.env.development? env['PATH_INFO'] = $1 App.new.call(env) else @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code_buddy-0.0.6 | lib/code_buddy/middleware.rb |