Skip to content

Commit 7624768

Browse files
Remove "Returns" headings [ci-skip]
We typically do not include "Returns" sections in method docs.
1 parent aa69684 commit 7624768

File tree

1 file changed

+1
-12
lines changed
  • actionpack/lib/abstract_controller

1 file changed

+1
-12
lines changed

actionpack/lib/abstract_controller/base.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,10 @@ def internal_methods
8686
controller.public_instance_methods(true) - methods
8787
end
8888

89-
# A list of method names that should be considered actions. This includes all
89+
# A `Set` of method names that should be considered actions. This includes all
9090
# public instance methods on a controller, less any internal methods (see
9191
# internal_methods), adding back in any methods that are internal, but still
9292
# exist on the class itself.
93-
#
94-
# #### Returns
95-
# * `Set` - A set of all methods that should be considered actions.
96-
#
9793
def action_methods
9894
@action_methods ||= begin
9995
# All public instance methods of this class, including ancestors except for
@@ -121,9 +117,6 @@ def clear_action_methods!
121117
#
122118
# MyApp::MyPostsController.controller_path # => "my_app/my_posts"
123119
#
124-
# #### Returns
125-
# * `String`
126-
#
127120
def controller_path
128121
@controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
129122
end
@@ -151,10 +144,6 @@ def eager_load! # :nodoc:
151144
# The actual method that is called is determined by calling #method_for_action.
152145
# If no method can handle the action, then an AbstractController::ActionNotFound
153146
# error is raised.
154-
#
155-
# #### Returns
156-
# * `self`
157-
#
158147
def process(action, ...)
159148
@_action_name = action.to_s
160149

0 commit comments

Comments
 (0)