Permalink
Browse files

Remove duplicate attr_reader :env

  • Loading branch information...
1 parent 293bb02 commit 3562d54d18bf6c87384436c63383666617a2a1eb @lifo lifo committed Dec 23, 2008
Showing with 2 additions and 4 deletions.
  1. +2 −4 actionpack/lib/action_controller/request.rb
@@ -13,6 +13,8 @@ class Request
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 @@ def key?(key)
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

0 comments on commit 3562d54

Please sign in to comment.