Mudancas na interface e suporte a IE6/7

This commit is contained in:
2008-03-07 05:40:33 -03:00
parent 8671d2350b
commit 42b43c3c2b
13 changed files with 75 additions and 17 deletions

View File

@@ -16,6 +16,8 @@ class Event < ActiveRecord::Base
acts_as_paranoid
generate_validations
belongs_to :course
def Event.to_ical(courses)
courses = [courses] unless courses.kind_of?(Array)
cal = Icalendar::Calendar.new

View File

@@ -26,7 +26,7 @@ class EventDeleteLogEntry < EventLogEntry
e = Event.find_with_deleted(target_id)
e.update_attribute(:deleted_at, nil)
EventRestoreLogEntry.create!(:target_id => e.id, :user_id => current_user.id,
:course => e.course)
:course_id => e.course_id)
end
end