Permalink
Browse files

Change Class#subclasses doc example

  • Loading branch information...
1 parent 741b291 commit d47b90e76c989a8f0ca32c140e9b7220da0e5edc @dalibor dalibor committed Feb 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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|

0 comments on commit d47b90e

Please sign in to comment.