From fa3ca94e53e83bb91ca72d5be0a37ffc838a3f6e Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Tue, 4 Mar 2014 08:14:38 +0000 Subject: [PATCH] VRFS-1326 added filter for deleted sessions/recordings --- ruby/lib/jam_ruby/models/promotional.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruby/lib/jam_ruby/models/promotional.rb b/ruby/lib/jam_ruby/models/promotional.rb index 407a30c1e..987d2b55f 100644 --- a/ruby/lib/jam_ruby/models/promotional.rb +++ b/ruby/lib/jam_ruby/models/promotional.rb @@ -128,4 +128,7 @@ class JamRuby::PromoLatest < JamRuby::Promotional .map(&:latest) end + def self.active(max_count=10) + super.select { |pp| pp.latest.present? ? pp : nil }.compact + end end