Skip to content

Commit dc3da02

Browse files
committed
Fix comments and indentation
1 parent b2afa8b commit dc3da02

File tree

1 file changed

+8
-8
lines changed
  • actionpack/lib/abstract_controller

1 file changed

+8
-8
lines changed

actionpack/lib/abstract_controller/base.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ def internal_methods
8989
# ==== Returns
9090
# * <tt>Set</tt> - A set of all methods that should be considered actions.
9191
def action_methods
92-
# All public instance methods of this class, including ancestors
9392
@action_methods ||= begin
94-
# Except for public instance methods of Base and its ancestors
95-
methods = public_instance_methods(true) - internal_methods
96-
# Except for public instance methods of Base and its ancestors
97-
methods.concat(public_instance_methods(false))
98-
methods.map!(&:to_s)
99-
methods.to_set
100-
end
93+
# All public instance methods of this class, including ancestors
94+
# except for public instance methods of Base and its ancestors.
95+
methods = public_instance_methods(true) - internal_methods
96+
# Be sure to include shadowed public instance methods of this class.
97+
methods.concat(public_instance_methods(false))
98+
methods.map!(&:to_s)
99+
methods.to_set
100+
end
101101
end
102102

103103
# action_methods are cached and there is sometimes a need to refresh

0 commit comments

Comments
 (0)