From 3562d54d18bf6c87384436c63383666617a2a1eb Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Tue, 23 Dec 2008 00:36:13 +0000 Subject: Remove duplicate attr_reader :env --- actionpack/lib/action_controller/request.rb | 6 ++---- 1 file 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 :get. # UnknownHttpMethod is raised for invalid methods not listed in ACCEPTED_HTTP_METHODS. def request_method -- cgit v1.2.3