diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-27 15:43:42 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-27 15:43:42 +0300 |
commit | 98dd795c01df0da4c1adc6134fcdb2d6d774afc7 (patch) | |
tree | 1b264c6b7ae9b33f23f98f5aaefd88e5edaf7cd2 | |
parent | 852460852cf1635af3f2861847253e8b5677acc0 (diff) | |
download | rails-98dd795c01df0da4c1adc6134fcdb2d6d774afc7.tar.gz rails-98dd795c01df0da4c1adc6134fcdb2d6d774afc7.tar.bz2 rails-98dd795c01df0da4c1adc6134fcdb2d6d774afc7.zip |
Documentation for ActionDispatch::Request form_data? method [ci skip]
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index 836bdead25..f3de19db0b 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -295,6 +295,8 @@ module ActionDispatch end end + # returns true if request content mime type is + # +application/x-www-form-urlencoded+ or +multipart/form-data+. def form_data? FORM_DATA_MEDIA_TYPES.include?(content_mime_type.to_s) end |