lib/locomotive/liquid/drops/content_entry.rb in locomotive_cms-2.0.0.rc6 vs lib/locomotive/liquid/drops/content_entry.rb in locomotive_cms-2.0.0.rc7

- old
+ new

@@ -61,15 +61,12 @@ # filter ? if @context['with_scope'] conditions = HashWithIndifferentAccess.new(@context['with_scope']) order_by = conditions.delete(:order_by).try(:split) - if order_by.nil? - list.where(conditions).ordered - else - list.where(conditions).order_by(order_by) - end + list.filtered(conditions, order_by) else + # no filter, default order list.ordered end end end