diff options
author | Dries Steenhouwer <steenhouwer.dries@gmail.com> | 2014-08-07 17:25:43 +0200 |
---|---|---|
committer | Dries Steenhouwer <steenhouwer.dries@gmail.com> | 2014-08-07 17:25:43 +0200 |
commit | 05d5475264f0b666ef3e9ea0f29c0d3b42522d43 (patch) | |
tree | 72ca38122b6da1e0730343d134ecfc96a99784d1 | |
parent | d769f21dcbb5337d56b6d980a00d70a3e8e007c8 (diff) | |
download | refinerycms-pc_banners-05d5475264f0b666ef3e9ea0f29c0d3b42522d43.tar.gz refinerycms-pc_banners-05d5475264f0b666ef3e9ea0f29c0d3b42522d43.tar.bz2 refinerycms-pc_banners-05d5475264f0b666ef3e9ea0f29c0d3b42522d43.zip |
fix position banner2-1-stable
-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 |