aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-08-02 02:27:28 +0200
committerŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-08-25 11:39:13 +0200
commit7d810049fe8905e3e96d0b2e989f562bb961e59e (patch)
treef835d0511c3c1f620307a5779e621e5a9fff988d /actionpack/lib/abstract_controller
parent1b1c23599bf0b4c16fec260ed993b27a8cc92724 (diff)
downloadrails-7d810049fe8905e3e96d0b2e989f562bb961e59e.tar.gz
rails-7d810049fe8905e3e96d0b2e989f562bb961e59e.tar.bz2
rails-7d810049fe8905e3e96d0b2e989f562bb961e59e.zip
Add #rendered_format method to controllers
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index 93ded404d6..5a5c47eb3b 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -47,6 +47,11 @@ module AbstractController
def render(*args, &block)
end
+ # Return Content-Type of rendered content
+ # :api: public
+ def rendered_format
+ end
+
# This method should return a hash with assigns.
# You can overwrite this configuration per controller.
# :api: public