Sha256: bf80f7b0844f44e32a403c90cd8bfc09ffe399cb9b07793e9c894ed83625ad76
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
module SimpleCalendar module ViewHelpers 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_calendar-3.0.0 | lib/simple_calendar/view_helpers.rb |