aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-12-23 00:36:13 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-23 00:36:13 +0000
commit3562d54d18bf6c87384436c63383666617a2a1eb (patch)
treea4642848630aed396f320620242d41b50241ab84 /actionpack/lib/action_controller
parent293bb02f91390088890104335c76c51b8990cc49 (diff)
downloadrails-3562d54d18bf6c87384436c63383666617a2a1eb.tar.gz
rails-3562d54d18bf6c87384436c63383666617a2a1eb.tar.bz2
rails-3562d54d18bf6c87384436c63383666617a2a1eb.zip
Remove duplicate attr_reader :env
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-xactionpack/lib/action_controller/request.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb
index 71b5ebb1b3..2cad7bc84c 100755
--- a/actionpack/lib/action_controller/request.rb
+++ b/actionpack/lib/action_controller/request.rb
@@ -13,6 +13,8 @@ module ActionController
class SessionFixationAttempt < StandardError #:nodoc:
end
+ # The hash of environment variables for this request,
+ # such as { 'RAILS_ENV' => 'production' }.
attr_reader :env
def initialize(env)
@@ -39,10 +41,6 @@ module ActionController
HTTP_METHODS = %w(get head put post delete options)
HTTP_METHOD_LOOKUP = HTTP_METHODS.inject({}) { |h, m| h[m] = h[m.upcase] = m.to_sym; h }
- # The hash of environment variables for this request,
- # such as { 'RAILS_ENV' => 'production' }.
- attr_reader :env
-
# The true HTTP request \method as a lowercase symbol, such as <tt>:get</tt>.
# UnknownHttpMethod is raised for invalid methods not listed in ACCEPTED_HTTP_METHODS.
def request_method