forked from bofh/fetsite
Views & Logik Membership, Fetprofile, Gremium
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user