aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/text.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-22 15:16:28 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-22 15:25:13 -0700
commit72a574b5073b1debd58c954b34c54d3bdee7749f (patch)
tree994345ceb428e29ba7588ee5abc5cf2fa73de448 /actionpack/lib/action_view/template/text.rb
parent01129534cde293e3561dd7cc3cb5ae9ac3de9e8c (diff)
downloadrails-72a574b5073b1debd58c954b34c54d3bdee7749f.tar.gz
rails-72a574b5073b1debd58c954b34c54d3bdee7749f.tar.bz2
rails-72a574b5073b1debd58c954b34c54d3bdee7749f.zip
Get controller/layout_test.rb running on new base except for ActionController::Base.exempt_from_layout which is going to be deprecated.
Diffstat (limited to 'actionpack/lib/action_view/template/text.rb')
-rw-r--r--actionpack/lib/action_view/template/text.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/text.rb b/actionpack/lib/action_view/template/text.rb
index a86c3915c2..fd57b1677e 100644
--- a/actionpack/lib/action_view/template/text.rb
+++ b/actionpack/lib/action_view/template/text.rb
@@ -6,6 +6,10 @@ module ActionView #:nodoc:
@content_type = Mime[content_type]
end
+ def details
+ {:formats => [@content_type.to_sym]}
+ end
+
def identifier() self end
def render(*) self end