From 892cf8459386a8cfbbf3212775600c7c12147c10 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sat, 24 Aug 2013 06:33:56 +0200 Subject: [PATCH] FIX <> neuigkeit vertauscht --- app/models/neuigkeit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/neuigkeit.rb b/app/models/neuigkeit.rb index e9d2242..5c16b36 100755 --- a/app/models/neuigkeit.rb +++ b/app/models/neuigkeit.rb @@ -22,7 +22,7 @@ class Neuigkeit < ActiveRecord::Base translates :title,:text, :versioning=>true, :fallbacks_for_empty_translations => true has_one :calentry, :as => :object mount_uploader :picture, PictureUploader - scope :published, -> {where("datum >= ? AND datum IS NOT NULL", Time.now.to_date)} + scope :published, -> {where("datum <= ? AND datum IS NOT NULL", Time.now.to_date)} scope :recent, -> { published.where("updated_at >= ? ",Time.now - 7.days)} def datum_nilsave self.datum.nil? ? Time.now + 42.years : self.datum