diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-15 07:38:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-15 07:38:39 -0700 |
commit | ec6638a23756ea104f203546df15a5e3e0dff229 (patch) | |
tree | 492a9b5b8c37a1573afa42f62e415d4e21cec2b7 /actionpack/lib/action_controller/metal.rb | |
parent | a50376424f9e72eba0d816ca303034ce03b6fe84 (diff) | |
download | rails-ec6638a23756ea104f203546df15a5e3e0dff229.tar.gz rails-ec6638a23756ea104f203546df15a5e3e0dff229.tar.bz2 rails-ec6638a23756ea104f203546df15a5e3e0dff229.zip |
allocate request objects with the env hash, set routes on the request
This commit is to abstract the code away from the env hash. It no
longer needs to have the routes key hard coded.
Diffstat (limited to 'actionpack/lib/action_controller/metal.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index 030a1f3478..0384740fef 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -140,13 +140,6 @@ module ActionController end end - def self.build_with_env(env = {}) #:nodoc: - new.tap { |c| - c.set_request! ActionDispatch::Request.new(env) - c.set_response! make_response!(c.request) - } - end - # Delegates to the class' <tt>controller_name</tt> def controller_name self.class.controller_name |