File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
actionpack/lib/abstract_controller Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -89,15 +89,15 @@ def internal_methods
89
89
# ==== Returns
90
90
# * <tt>Set</tt> - A set of all methods that should be considered actions.
91
91
def action_methods
92
- # All public instance methods of this class, including ancestors
93
92
@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
101
101
end
102
102
103
103
# action_methods are cached and there is sometimes a need to refresh
You can’t perform that action at this time.
0 commit comments