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:
parent
293bb02f91
commit
3562d54d18
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue