mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Code style fixes
This commit is contained in:
parent
c6bbc67dab
commit
d8acf60049
72 changed files with 458 additions and 594 deletions
|
|
@ -7,17 +7,17 @@ require 'rack'
|
|||
require 'fcgi'
|
||||
|
||||
class Rack::PathInfoRewriter
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
env.delete('SCRIPT_NAME')
|
||||
parts = env['REQUEST_URI'].split('?')
|
||||
env['PATH_INFO'] = parts[0]
|
||||
env['QUERY_STRING'] = parts[1].to_s
|
||||
@app.call(env)
|
||||
end
|
||||
def call(env)
|
||||
env.delete('SCRIPT_NAME')
|
||||
parts = env['REQUEST_URI'].split('?')
|
||||
env['PATH_INFO'] = parts[0]
|
||||
env['QUERY_STRING'] = parts[1].to_s
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
|
||||
Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(Tracksapp::Application)
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_
|
|||
require "dispatcher"
|
||||
|
||||
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
|
||||
Dispatcher.dispatch
|
||||
Dispatcher.dispatch
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue