aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-02-23 22:38:33 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-02-23 22:38:33 +0900
commitea85b3953667bf5812c20beee17f0925561ea8df (patch)
treef08fe6b94d585aef3a53efef3eaaa1951ac49537 /actionpack
parentbab3c7c63deee86305d80e24c4ea1124c0ec27d1 (diff)
downloadrails-ea85b3953667bf5812c20beee17f0925561ea8df.tar.gz
rails-ea85b3953667bf5812c20beee17f0925561ea8df.tar.bz2
rails-ea85b3953667bf5812c20beee17f0925561ea8df.zip
fix method name in mime type example. `Mime::Type.[]` doesn't exist. [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/http/mime_type.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb
index 047a17937a..7e585aa244 100644
--- a/actionpack/lib/action_dispatch/http/mime_type.rb
+++ b/actionpack/lib/action_dispatch/http/mime_type.rb
@@ -45,7 +45,7 @@ module Mime
#
# 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