Sha256: 61f149ab218929abca932beede29f4d7ae0f65bc8332d77fadda8bb72802e9b2
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
ActionController.add_renderer :ical do |ical, options| self.content_type ||= Mime::ICAL self.response_body = ical.respond_to?(:to_ical) ? ical.to_ical(options) : ical end ActionController.add_renderer :ics do |ical, options| self.content_type ||= Mime::ICS self.response_body = ical.respond_to?(:to_ical) ? ical.to_ical(options) : ical end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actic-0.0.5.1 | lib/renderers/ical.rb |
actic-0.0.5 | lib/renderers/ical.rb |