Permalink
Browse files

We don't need AD parse_config

  • Loading branch information...
1 parent 17f6647 commit 15f95621d5b472959215cdc258491934e5f05f2e @josh josh committed Dec 21, 2009
Showing with 0 additions and 21 deletions.
  1. +0 −1 actionpack/lib/action_dispatch.rb
  2. +0 −20 actionpack/lib/action_dispatch/http/utils.rb
@@ -38,7 +38,6 @@ module ActionDispatch
autoload :Request
autoload :Response
autoload :StatusCodes
- autoload :Utils
end
deferrable do
@@ -1,20 +0,0 @@
-module ActionDispatch
- module Utils
- # TODO: Pull this into rack core
- # http://github.com/halorgium/rack/commit/feaf071c1de743fbd10bc316830180a9af607278
- def parse_config(config)
- if config =~ /\.ru$/
- cfgfile = ::File.read(config)
- if cfgfile[/^#\\(.*)/]
- opts.parse! $1.split(/\s+/)
- end
- inner_app = eval "Rack::Builder.new {( " + cfgfile + "\n )}.to_app",
- nil, config
- else
- require config
- inner_app = Object.const_get(::File.basename(config, '.rb').capitalize)
- end
- end
- module_function :parse_config
- end
-end

0 comments on commit 15f9562

Please sign in to comment.