Skip to content

Commit

Permalink
just use core methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Dec 9, 2010
1 parent 1860d87 commit b2a0425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/observer.rb
Expand Up @@ -98,7 +98,7 @@ def initialize
protected

def observed_descendants
observed_classes.sum([]) { |klass| klass.descendants }
observed_classes.map { |klass| klass.descendants }.flatten
end

def add_observer!(klass)
Expand Down

0 comments on commit b2a0425

Please sign in to comment.