app/models/schedule.rb
# after initialize 
# if we don't pass @ical we load it from serialization
after initialize
if we don't pass @ical we load it from serialization
after initialize if we don ' t pass @ical we load it from serialization
def sync_with_icalendar
    if (! @ical) && self.ice_tea_sched_serialization
      @ical = IceCube::Schedule.from_hash(self.ice_tea_sched_serialization)
    end
  end
def sync_with_icalendar if ( ! @ical ) && self . ice_tea_sched_serialization @ical = IceCube :: Schedule . from_hash ( self . ice_tea_sched_serialization ) end end
after initialize
if we don't pass @ical we load it from serialization
after initialize if we don ' t pass @ical we load it from serialization