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.5.6 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.5.5 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.5.4 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.5.3 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.5.1 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.5.0 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.14 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.12 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.10 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.9 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.8 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.7 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.6 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.5 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.2 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.1 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.4.0 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.9 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.8 app/controllers/admin/calendars_controller.rb
radiant-event_calendar-extension-1.3.7 app/controllers/admin/calendars_controller.rb