提交 61af5cc9 编写于 作者: A Abdelkader Boudih

Merge pull request #17321 from prathamesh-sonpatki/nodoc-status_at

Make status_at methods nodoc
...@@ -165,7 +165,7 @@ def location=(url) ...@@ -165,7 +165,7 @@ def location=(url)
headers["Location"] = url headers["Location"] = url
end end
# basic url_for that can be overridden for more robust functionality # Basic url_for that can be overridden for more robust functionality
def url_for(string) def url_for(string)
string string
end end
...@@ -182,7 +182,7 @@ def response_body=(body) ...@@ -182,7 +182,7 @@ def response_body=(body)
body = [body] unless body.nil? || body.respond_to?(:each) body = [body] unless body.nil? || body.respond_to?(:each)
super super
end end
# Tests if render or redirect has already happened. # Tests if render or redirect has already happened.
def performed? def performed?
response_body || (response && response.committed?) response_body || (response && response.committed?)
...@@ -237,7 +237,7 @@ def self.action(name, klass = ActionDispatch::Request) ...@@ -237,7 +237,7 @@ def self.action(name, klass = ActionDispatch::Request)
end end
end end
def _status_code def _status_code #:nodoc:
@_status @_status
end end
end end
......
...@@ -309,7 +309,7 @@ def cookies ...@@ -309,7 +309,7 @@ def cookies
cookies cookies
end end
def _status_code def _status_code #:nodoc:
@status @status
end end
private private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册