VRFS-1326 added filter for deleted sessions/recordings

This commit is contained in:
Jonathan Kolyer 2014-03-04 08:14:38 +00:00
parent 956f2cf9e9
commit fa3ca94e53
1 changed files with 3 additions and 0 deletions

View File

@ -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