forked from bofh/fetsite
Fetprofiles verbesserung Calentry upcoming
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -6,4 +6,5 @@ class Fetprofile < ActiveRecord::Base
|
||||
def name
|
||||
[vorname, nachname, "(",short,")"].join(" ")
|
||||
end
|
||||
scope :active, -> { where(:active=>:true).order(:vorname) }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user