meetingtyp management

This commit is contained in:
Andreas Stephanides
2015-02-09 15:38:21 +01:00
parent 6c39c40403
commit f1a149908d
15 changed files with 148 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ class Neuigkeit < ActiveRecord::Base
scope :intern, ->{includes(:rubrik).where("rubriken.public"=>false)}
# scope :search, ->(query) {where("text like ? or title like ?", "%#{query}%", "%#{query}%")}
LINKTYPES=["Thema", "Gallery", "Lva","Studium","Fetprofile", "Gremium"]
LINKTYPES=["Thema", "Themengruppe", "Gallery", "Lva","Studium","Fetprofile", "Gremium"]
accepts_nested_attributes_for :calentries, :allow_destroy=>true , :reject_if=> lambda{|a| a[:start].blank?}
before_validation :sanitize