integrate calendar with meetings

This commit is contained in:
Andreas Stephanides
2015-01-18 14:32:20 +01:00
parent e5966bccce
commit b46e19b466
6 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
module ApplicationHelper
def clean_calendar(cal)
cal.rubrik.meetingtyps.each do |mt|
mt.meetings.each do |m|
m.calentry.calendar=cal
end
end
end
def strip_control_chars(value)
value.chars.inject("") do |str, char|
unless char.ascii_only? && (char.ord < 32 || char.ord == 127)