File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
actionpack/lib/abstract_controller Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,11 @@ def internal_methods
91
91
def action_methods
92
92
@action_methods ||= begin
93
93
# All public instance methods of this class, including ancestors
94
- methods = ( public_instance_methods ( true ) -
95
- # Except for public instance methods of Base and its ancestors
96
- internal_methods +
97
- # Be sure to include shadowed public instance methods of this class
98
- public_instance_methods ( false ) )
99
-
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 ) )
100
98
methods . map! ( &:to_s )
101
-
102
99
methods . to_set
103
100
end
104
101
end
You can’t perform that action at this time.
0 commit comments