From 05d5475264f0b666ef3e9ea0f29c0d3b42522d43 Mon Sep 17 00:00:00 2001 From: Dries Steenhouwer Date: Thu, 7 Aug 2014 17:25:43 +0200 Subject: fix position banner --- app/models/refinery/banners/banner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/refinery/banners/banner.rb b/app/models/refinery/banners/banner.rb index 1a43fa7..30c151a 100644 --- a/app/models/refinery/banners/banner.rb +++ b/app/models/refinery/banners/banner.rb @@ -26,7 +26,7 @@ module Refinery not_expired.active.where("start_date <= ?", Time.now).order(:position) } scope :publish_in_current_locale, lambda{ - not_expired.active.where("start_date <= ?", Time.now).where("locale = ? or locale = ''", ::I18n.locale) + not_expired.active.where("start_date <= ?", Time.now).where("locale = ? or locale = ''", ::I18n.locale).order(:position) } end -- cgit v1.2.3