Skip to content

Commit

Permalink
Ruby 1.9 compat: Class#subclasses is now protected
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Dec 22, 2007
1 parent ca81278 commit 750f15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/observer.rb
Expand Up @@ -170,7 +170,7 @@ def observed_classes
end end


def observed_subclasses def observed_subclasses
observed_classes.collect(&:subclasses).flatten observed_classes.sum { |klass| klass.send(:subclasses) }
end end


def add_observer!(klass) def add_observer!(klass)
Expand Down

0 comments on commit 750f15b

Please sign in to comment.