Mudancas na interface e suporte a IE6/7
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user