Skip to content

Commit

Permalink
Fix comments and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Aug 24, 2023
1 parent b2afa8b commit dc3da02
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions actionpack/lib/abstract_controller/base.rb
Expand Up @@ -89,15 +89,15 @@ def internal_methods
# ==== Returns
# * <tt>Set</tt> - A set of all methods that should be considered actions.
def action_methods
# All public instance methods of this class, including ancestors
@action_methods ||= begin
# Except for public instance methods of Base and its ancestors
methods = public_instance_methods(true) - internal_methods
# Except for public instance methods of Base and its ancestors
methods.concat(public_instance_methods(false))
methods.map!(&:to_s)
methods.to_set
end
# All public instance methods of this class, including ancestors
# except for public instance methods of Base and its ancestors.
methods = public_instance_methods(true) - internal_methods
# Be sure to include shadowed public instance methods of this class.
methods.concat(public_instance_methods(false))
methods.map!(&:to_s)
methods.to_set
end
end

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

0 comments on commit dc3da02

Please sign in to comment.