diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-02-23 13:47:45 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-02-23 13:47:45 +0000 |
commit | 36fb65c5e31a4a5a27bc4d0bb04171d1e43022c8 (patch) | |
tree | f08fe6b94d585aef3a53efef3eaaa1951ac49537 | |
parent | bab3c7c63deee86305d80e24c4ea1124c0ec27d1 (diff) | |
parent | ea85b3953667bf5812c20beee17f0925561ea8df (diff) | |
download | rails-36fb65c5e31a4a5a27bc4d0bb04171d1e43022c8.tar.gz rails-36fb65c5e31a4a5a27bc4d0bb04171d1e43022c8.tar.bz2 rails-36fb65c5e31a4a5a27bc4d0bb04171d1e43022c8.zip |
Merge pull request #19044 from y-yagi/mime_type_doc
fix method name in mime type example. `Mime::Type.[]` doesn't exist. [ci skip]
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 2 |
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 |