Views & Logik Membership, Fetprofile, Gremium

This commit is contained in:
Andreas Stephanides
2013-08-25 17:44:42 +02:00
parent bc8942a6ab
commit 759632948e
10 changed files with 79 additions and 26 deletions

View File

@@ -17,4 +17,6 @@ class Membership < ActiveRecord::Base
attr_accessible :fetprofile_id, :gremium_id, :start, :stop, :typ
belongs_to :fetprofile
belongs_to :gremium
scope :active, -> {where("stop >= ? OR stop IS NULL", Time.now.to_date)}
end