forked from bofh/fetsite
Upgraded to Rails 4
This commit is contained in:
@@ -5,8 +5,8 @@ class Meetingtyp < ActiveRecord::Base
|
||||
validates :name, :presence=>true
|
||||
has_many :meetings
|
||||
has_one :calendar, through: :rubrik
|
||||
has_one :protocol, :class_name=>'Document', :conditions=>{:typ=>10}, :as=>:parent
|
||||
has_one :agenda , :as=>:parent, :conditions=>{:typ=>11}, :class_name=>'Document'
|
||||
has_one :protocol, -> {where(:typ=>10)}, :class_name=>'Document', :as=>:parent
|
||||
has_one :agenda, -> {where(:typ=>11)} , :as=>:parent, :class_name=>'Document'
|
||||
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
|
||||
Reference in New Issue
Block a user