mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-18 21:28:08 +01:00
Access MIME types via hash lookup instead of constant
Use a constant to look up a mime type is deprecated. Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
2f85a42f91
commit
7fe0cf271a
4 changed files with 13 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ class CalendarController < ApplicationController
|
|||
cookies[:mobile_url]= {:value => request.fullpath, :secure => SITE_CONFIG['secure_cookies']}
|
||||
}
|
||||
format.ics {
|
||||
render :action => 'show', :layout => false, :content_type => Mime::ICS
|
||||
render :action => 'show', :layout => false, :content_type => Mime[:ics]
|
||||
}
|
||||
format.xml {
|
||||
render :xml => @due_all.to_xml( *todo_xml_params )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue