VRFS-1326 added includes(:latest) to PromoLatest.active impl
This commit is contained in:
parent
b4c168c12a
commit
7a991a8032
|
|
@ -129,6 +129,6 @@ class JamRuby::PromoLatest < JamRuby::Promotional
|
|||
end
|
||||
|
||||
def self.active(max_count=10)
|
||||
super.select { |pp| pp.latest.present? ? pp : nil }.compact
|
||||
super.includes(:latest).select { |pp| pp.latest.present? ? pp : nil }.compact
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue