Sha256: f723c8242a2054365c7662d13d235ef8025e01ae179bcc790e02ec7d715042ba
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
module SimpleCalendar module ModelAdditions def has_calendar(options={}) config = { :title => "title", :start_time => "start_time"} config.update(options) if options.is_a?(Hash) class_eval <<-EOV def title_column #{config[:title]} end def start_time_column #{config[:start_time]} end EOV end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_calendar-0.0.1 | lib/simple_calendar/model_additions.rb |