aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/request.rb
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2013-03-13 15:27:49 -0700
committerSteve Klabnik <steve@steveklabnik.com>2013-03-13 15:27:49 -0700
commita3c8e4add7178e86d80584f2c7df51b77fc882ff (patch)
tree43edc6da93490ee9bc0f728d3038291fb7609b2f /actionpack/lib/action_dispatch/http/request.rb
parent5bf6d8e7c14ebcb53d1a9f19fee6d2a2e7ef17a2 (diff)
downloadrails-a3c8e4add7178e86d80584f2c7df51b77fc882ff.tar.gz
rails-a3c8e4add7178e86d80584f2c7df51b77fc882ff.tar.bz2
rails-a3c8e4add7178e86d80584f2c7df51b77fc882ff.zip
Add extra clarifying line in docs. [ci skip]
Diffstat (limited to 'actionpack/lib/action_dispatch/http/request.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb
index ac9cf7a80c..97a9b7be86 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -179,6 +179,7 @@ module ActionDispatch
# The +String+ MIME type of the request
#
# app.get "/articles"
+ # app.request.media_type
# # => "application/x-www-form-urlencoded"
def media_type
content_mime_type.to_s