mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove duplicate method (_status_code) in action_dispatch
This commit is contained in:
parent
61af5cc95d
commit
aefec3c61a
2 changed files with 1 additions and 4 deletions
|
@ -6,7 +6,7 @@ module ActionController
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
delegate :headers, :status=, :location=, :content_type=,
|
delegate :headers, :status=, :location=, :content_type=,
|
||||||
:status, :location, :content_type, :_status_code, :to => "@_response"
|
:status, :location, :content_type, :response_code, :to => "@_response"
|
||||||
|
|
||||||
def dispatch(action, request)
|
def dispatch(action, request)
|
||||||
set_response!(request)
|
set_response!(request)
|
||||||
|
|
|
@ -309,9 +309,6 @@ module ActionDispatch # :nodoc:
|
||||||
cookies
|
cookies
|
||||||
end
|
end
|
||||||
|
|
||||||
def _status_code #:nodoc:
|
|
||||||
@status
|
|
||||||
end
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def before_committed
|
def before_committed
|
||||||
|
|
Loading…
Reference in a new issue