diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/refinery/banners/banner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |