Sha256: 0941b7d5f8a4d25d8d0cf06465a4c74557370e79aa7fdbcaa69d3101b0266c16
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
class Admin::IcalsController < Admin::ResourceController def refresh_all # This is the correct line for the agent to run. # Calendar::refresh_all # We'll keep using this so we can keep an eye on the downlaod status until an agent and proper error checking is implemented. @icals = Ical.find(:all) @icals.each do |ical| ical.refresh end flash[:notice] = "iCal subscription refresh complete." redirect_to admin_calendars_path end def refresh ical = Ical.find(params[:id]) if events = ical.refresh flash[:notice] = ical.calendar.name + " calendar refreshed from iCal subscription." else flash[:notice] = "Error parsing " + ical.calendar.name + " calendar from iCal subscription." end redirect_to :back end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-event_calendar-extension-1.1.0 | app/controllers/admin/icals_controller.rb |