attachments has_many for document, neuigkeit, thema
This commit is contained in:
@@ -20,6 +20,9 @@ class Neuigkeit < ActiveRecord::Base
|
||||
has_many :calentries, as: :object
|
||||
has_many :nlinks
|
||||
has_one :meeting
|
||||
has_many :attachments, :as=>:parent
|
||||
|
||||
|
||||
|
||||
validates :rubrik, :presence=>true
|
||||
validates :author, :presence=>true
|
||||
|
||||
Reference in New Issue
Block a user