Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change Class#subclasses doc example

  • Loading branch information...
commit d47b90e76c989a8f0ca32c140e9b7220da0e5edc 1 parent 741b291
@dalibor dalibor authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/class/subclasses.rb
View
4 activesupport/lib/active_support/core_ext/class/subclasses.rb
@@ -29,9 +29,9 @@ def descendants # :nodoc:
#
# class Foo; end
# class Bar < Foo; end
- # class Baz < Foo; end
+ # class Baz < Bar; end
#
- # Foo.subclasses # => [Baz, Bar]
+ # Foo.subclasses # => [Bar]
def subclasses
subclasses, chain = [], descendants
chain.each do |k|
Please sign in to comment.
Something went wrong with that request. Please try again.