Fetprofiles verbesserung Calentry upcoming

This commit is contained in:
Andreas Stephanides
2013-08-22 16:38:33 +02:00
parent d031e7b855
commit cfcf0be4d5
7 changed files with 28 additions and 21 deletions

View File

@@ -18,5 +18,5 @@ class Calentry < ActiveRecord::Base
def name
summary
end
scope :upcoming, -> { where("start >= ?" , Time.now).where("start <= ?", 8.days.from_now) }
end