aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/template/handler.rb')
-rw-r--r--actionpack/lib/action_view/template/handler.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/handler.rb b/actionpack/lib/action_view/template/handler.rb
index 672da0ed2b..3071c78174 100644
--- a/actionpack/lib/action_view/template/handler.rb
+++ b/actionpack/lib/action_view/template/handler.rb
@@ -1,3 +1,6 @@
+require "active_support/core_ext/class/inheritable_attributes"
+require "action_dispatch/http/mime_type"
+
# Legacy TemplateHandler stub
module ActionView
module TemplateHandlers #:nodoc:
@@ -19,6 +22,9 @@ module ActionView
end
class TemplateHandler
+ extlib_inheritable_accessor :default_format
+ self.default_format = Mime::HTML
+
def self.call(template)
"#{name}.new(self).render(template, local_assigns)"
end