1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove duplicate attr_reader :env

This commit is contained in:
Pratik Naik 2008-12-23 00:36:13 +00:00
parent 293bb02f91
commit 3562d54d18

View file

@ -13,6 +13,8 @@ module ActionController
class SessionFixationAttempt < StandardError #:nodoc: class SessionFixationAttempt < StandardError #:nodoc:
end end
# The hash of environment variables for this request,
# such as { 'RAILS_ENV' => 'production' }.
attr_reader :env attr_reader :env
def initialize(env) def initialize(env)
@ -39,10 +41,6 @@ module ActionController
HTTP_METHODS = %w(get head put post delete options) 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 } 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>. # 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. # UnknownHttpMethod is raised for invalid methods not listed in ACCEPTED_HTTP_METHODS.
def request_method def request_method