From 73293053b587dc68435d1648411d6228b3b55d25 Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Wed, 17 May 2017 19:32:56 -0400 Subject: Document accessors response_body, action_name, formats [ci skip] --- actionpack/lib/abstract_controller/base.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index e7cb6347a2..1e4754dada 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -14,8 +14,16 @@ module AbstractController # expected to provide their own +render+ method, since rendering means # different things depending on the context. class Base + ## + # Returns the HTTP response sent by the controller attr_internal :response_body + + ## + # Returns the name of the action this controller is processing attr_internal :action_name + + ## + # Returns the formats processed by the controller attr_internal :formats include ActiveSupport::Configurable -- cgit v1.2.3 From 89e079f8fdd0a0b642a7f133ea4c5b5c140f85ab Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Thu, 18 May 2017 11:46:20 -0400 Subject: Specify only the body of the response is returned [ci skip] --- actionpack/lib/abstract_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index 1e4754dada..c030930617 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -15,7 +15,7 @@ module AbstractController # different things depending on the context. class Base ## - # Returns the HTTP response sent by the controller + # Returns the body of the HTTP response sent by the controller attr_internal :response_body ## -- cgit v1.2.3 From f63a69e92a585fb8309628781d7aba0d95cdfe0b Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Thu, 18 May 2017 13:57:15 -0400 Subject: Added missing punctuation [ci skip] --- actionpack/lib/abstract_controller/base.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index c030930617..aa58089fd4 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -15,15 +15,15 @@ module AbstractController # different things depending on the context. class Base ## - # Returns the body of the HTTP response sent by the controller + # Returns the body of the HTTP response sent by the controller. attr_internal :response_body ## - # Returns the name of the action this controller is processing + # Returns the name of the action this controller is processing. attr_internal :action_name ## - # Returns the formats processed by the controller + # Returns the formats processed by the controller. attr_internal :formats include ActiveSupport::Configurable -- cgit v1.2.3 From 73294bc96cde5730e552f7e9dfde8d5d3fd25586 Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Fri, 19 May 2017 01:48:38 -0400 Subject: Clarified description of formats [ci skip] --- actionpack/lib/abstract_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index aa58089fd4..dc79820a82 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -23,7 +23,7 @@ module AbstractController attr_internal :action_name ## - # Returns the formats processed by the controller. + # Returns the formats that can be processed by the controller. attr_internal :formats include ActiveSupport::Configurable -- cgit v1.2.3