Sha256: c5f324a8b053ec12d60d4c9d46e05f20acf7d4be4de10beac2dc51b720d1fdc6

Contents?: true

Size: 441 Bytes

Versions: 33

Compression:

Stored size: 441 Bytes

Contents

class Admin::CalendarsController < Admin::ResourceController
  paginate_models
  before_filter :check_refreshments, :only => [:index, :show]

  def show
    @calendar = Calendar.find(params[:id])
    @year = params[:year] ? params[:year].to_i : Date.today.year
    @month = params[:month] ? params[:month].to_i : Date.today.month
    response_for :singular
  end
  
protected

  def check_refreshments
    Ical.check_refreshments
  end

end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.3.6 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.5 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.4 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.3 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.2 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.1 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.0 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.1.2 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.1.1 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.1.0 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.0.2 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.0.1 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.0.0 app/controllers/admin/calendars_controller.rb