Skip to content

Commit 5063d6a

Browse files
committed
Be explicit about the API visibility of the methods
Even with the :nodoc: people may think the method is part of the public API so it is better to be explicit about it. [ci skip]
1 parent 548cb1c commit 5063d6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

actionview/lib/action_view/view_paths.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ module ViewPaths
1414
:locale, :locale=, :to => :lookup_context
1515

1616
module ClassMethods
17+
# Returns the view prefixes.
18+
#
19+
# This method is private API.
1720
def _prefixes # :nodoc:
1821
@_prefixes ||= begin
1922
deprecated_prefixes = handle_deprecated_parent_prefixes
@@ -31,6 +34,8 @@ def _prefixes # :nodoc:
3134

3235
# Override this method in your controller if you want to change paths prefixes for finding views.
3336
# Prefixes defined here will still be added to parents' <tt>._prefixes</tt>.
37+
#
38+
# This method is public API for framework extensions.
3439
def local_prefixes
3540
[controller_path]
3641
end
@@ -44,6 +49,8 @@ def handle_deprecated_parent_prefixes # TODO: remove in 4.3/5.0.
4449
end
4550

4651
# The prefixes used in render "foo" shortcuts.
52+
#
53+
# This method is private API.
4754
def _prefixes # :nodoc:
4855
self.class._prefixes
4956
end

0 commit comments

Comments
 (0)