From ea85b3953667bf5812c20beee17f0925561ea8df Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 23 Feb 2015 22:38:33 +0900 Subject: [PATCH] fix method name in mime type example. `Mime::Type.[]` doesn't exist. [ci skip] --- actionpack/lib/action_dispatch/http/mime_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index 047a17937a6ae..7e585aa244edf 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -45,7 +45,7 @@ def fetch(type) # # respond_to do |format| # format.html - # format.ics { render text: @post.to_ics, mime_type: Mime::Type["text/calendar"] } + # format.ics { render text: @post.to_ics, mime_type: Mime::Type.lookup("text/calendar") } # format.xml { render xml: @post } # end # end