diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-20 21:11:42 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-20 21:11:42 -0600 |
commit | 15f95621d5b472959215cdc258491934e5f05f2e (patch) | |
tree | 85cb345c93b3e9712eb882c12cefd38195d4be38 | |
parent | 17f66473bce0decb2e5ff23142d4046056ccca1b (diff) | |
download | rails-15f95621d5b472959215cdc258491934e5f05f2e.tar.gz rails-15f95621d5b472959215cdc258491934e5f05f2e.tar.bz2 rails-15f95621d5b472959215cdc258491934e5f05f2e.zip |
We don't need AD parse_config
-rw-r--r-- | actionpack/lib/action_dispatch.rb | 1 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/http/utils.rb | 20 |
2 files changed, 0 insertions, 21 deletions
diff --git a/actionpack/lib/action_dispatch.rb b/actionpack/lib/action_dispatch.rb index a7be49a273..48b5652a89 100644 --- a/actionpack/lib/action_dispatch.rb +++ b/actionpack/lib/action_dispatch.rb @@ -38,7 +38,6 @@ module ActionDispatch autoload :Request autoload :Response autoload :StatusCodes - autoload :Utils end deferrable do diff --git a/actionpack/lib/action_dispatch/http/utils.rb b/actionpack/lib/action_dispatch/http/utils.rb deleted file mode 100644 index e04a39935e..0000000000 --- a/actionpack/lib/action_dispatch/http/utils.rb +++ /dev/null @@ -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 |