forked from bofh/fetsite
increase test coverage for meetings
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
class Meetingtyp < ActiveRecord::Base
|
||||
attr_accessible :agendaintern, :desc, :name, :protocolintern, :rubrik_id, :picture
|
||||
belongs_to :rubrik
|
||||
validate :rubrik, :presence=>true
|
||||
validates :rubrik, :presence=>true
|
||||
validates :name, :presence=>true
|
||||
has_many :meetings
|
||||
has_one :calendar, through: :rubrik
|
||||
has_one :protocol, :class_name=>'Document', :conditions=>{:typ=>10}, :as=>:parent
|
||||
|
||||
Reference in New Issue
Block a user