app/controllers/tramway/admin/application_controller.rb in tramway-admin-1.26.1.1 vs app/controllers/tramway/admin/application_controller.rb in tramway-admin-1.26.1.2

- old
+ new

@@ -49,10 +49,10 @@ end @notifications end def notifications_count - @notifications_count = notifications.reduce(0) do |count, notification| + @notifications_count = notifications&.reduce(0) do |count, notification| count += notification[1].count end end if Rails.env.production?