diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-21 15:55:47 -0200 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-11-01 02:23:48 +0100 |
commit | 0cf16ddb88b4fa28c37e576d50d835b100c3f6a1 (patch) | |
tree | ebc8dd87cc054d9c544a33e27f484205467a939c /actionpack/lib/action_controller/metal | |
parent | 2d514e5352d17c8c3958b26397f1c808c7fa0b3c (diff) | |
download | rails-0cf16ddb88b4fa28c37e576d50d835b100c3f6a1.tar.gz rails-0cf16ddb88b4fa28c37e576d50d835b100c3f6a1.tar.bz2 rails-0cf16ddb88b4fa28c37e576d50d835b100c3f6a1.zip |
Improve AbstractController layouts coverage.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/rendering_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/rendering_controller.rb b/actionpack/lib/action_controller/metal/rendering_controller.rb index afd484b0ec..9e8bc82385 100644 --- a/actionpack/lib/action_controller/metal/rendering_controller.rb +++ b/actionpack/lib/action_controller/metal/rendering_controller.rb @@ -65,6 +65,10 @@ module ActionController controller_path end + def format_for_text + formats.first + end + def with_template_cache(name) self.class.template_cache[Thread.current[:format_locale_key]][name] ||= super end |