diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/observer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/observer.rb b/activerecord/lib/active_record/observer.rb index 2a82e320a6..cfdeae3592 100644 --- a/activerecord/lib/active_record/observer.rb +++ b/activerecord/lib/active_record/observer.rb @@ -170,7 +170,7 @@ module ActiveRecord end def observed_subclasses - observed_classes.sum { |klass| klass.send(:subclasses) } + observed_classes.sum([]) { |klass| klass.send(:subclasses) } end def add_observer!(klass) |