diff options
author | Dalibor Nasevic <dalibor.nasevic@gmail.com> | 2013-02-06 23:31:02 +0100 |
---|---|---|
committer | Dalibor Nasevic <dalibor.nasevic@gmail.com> | 2013-02-06 23:31:02 +0100 |
commit | d47b90e76c989a8f0ca32c140e9b7220da0e5edc (patch) | |
tree | 93f2df1a368ab8d1662b1501cf1bd1433172d4e6 | |
parent | 741b291d660b298c0e39ce15e266f7d2cdfa8e2d (diff) | |
download | rails-d47b90e76c989a8f0ca32c140e9b7220da0e5edc.tar.gz rails-d47b90e76c989a8f0ca32c140e9b7220da0e5edc.tar.bz2 rails-d47b90e76c989a8f0ca32c140e9b7220da0e5edc.zip |
Change Class#subclasses doc example
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/subclasses.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/subclasses.rb b/activesupport/lib/active_support/core_ext/class/subclasses.rb index 9a2dc6e7c5..3c4bfc5f1e 100644 --- a/activesupport/lib/active_support/core_ext/class/subclasses.rb +++ b/activesupport/lib/active_support/core_ext/class/subclasses.rb @@ -29,9 +29,9 @@ class Class # # 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| |