Sha256: e43c77841e314a74ee1cfc84b844fede79f0f20eb7ac8507e7ff8fb032560d9a

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

module SimpleCalendar
  module CalendarHelper
    def calendar(options = {}, &block)
      raise "calendar requires a block" unless block
      render SimpleCalendar::Calendar.new(self, options), &block
    end

    def month_calendar(options = {}, &block)
      raise "month_calendar requires a block" unless block
      render SimpleCalendar::MonthCalendar.new(self, options), &block
    end

    def week_calendar(options = {}, &block)
      raise "week_calendar requires a block" unless block
      render SimpleCalendar::WeekCalendar.new(self, options), &block
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_calendar-3.0.4 app/helpers/simple_calendar/calendar_helper.rb
simple_calendar-3.0.3 app/helpers/simple_calendar/calendar_helper.rb
simple_calendar-3.0.2 app/helpers/simple_calendar/calendar_helper.rb
simple_calendar-3.0.1 app/helpers/simple_calendar/calendar_helper.rb