diff options
author | Alex Kitchens <alexcameron89@users.noreply.github.com> | 2017-05-19 08:32:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 08:32:19 -0500 |
commit | c01ea3e54984f8ecc698af4a701483b560d616aa (patch) | |
tree | f546b8b12b117a08269eb2455a53c992f67203f5 /actionpack/lib/abstract_controller | |
parent | b769e83a882fba69d818f6ddafca87016199d5d8 (diff) | |
parent | 73294bc96cde5730e552f7e9dfde8d5d3fd25586 (diff) | |
download | rails-c01ea3e54984f8ecc698af4a701483b560d616aa.tar.gz rails-c01ea3e54984f8ecc698af4a701483b560d616aa.tar.bz2 rails-c01ea3e54984f8ecc698af4a701483b560d616aa.zip |
Merge pull request #29134 from joshaidan/document-action-name
Add documentation to accessors in AbstractController::Base
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/base.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index e7cb6347a2..dc79820a82 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 body of 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 that can be processed by the controller. attr_internal :formats include ActiveSupport::Configurable |