aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-20 21:11:42 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-20 21:11:42 -0600
commit15f95621d5b472959215cdc258491934e5f05f2e (patch)
tree85cb345c93b3e9712eb882c12cefd38195d4be38 /actionpack/lib/action_dispatch
parent17f66473bce0decb2e5ff23142d4046056ccca1b (diff)
downloadrails-15f95621d5b472959215cdc258491934e5f05f2e.tar.gz
rails-15f95621d5b472959215cdc258491934e5f05f2e.tar.bz2
rails-15f95621d5b472959215cdc258491934e5f05f2e.zip
We don't need AD parse_config
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/http/utils.rb20
1 files changed, 0 insertions, 20 deletions
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