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.rb23
1 files changed, 8 insertions, 15 deletions
diff --git a/actionpack/lib/action_view/template_handler.rb b/actionpack/lib/action_view/template_handler.rb
index e2dd305f93..d7e7c9b199 100644
--- a/actionpack/lib/action_view/template_handler.rb
+++ b/actionpack/lib/action_view/template_handler.rb
@@ -1,21 +1,14 @@
-module ActionView
- class TemplateHandler
- def self.compilable?
- false
- end
-
- def initialize(view)
- @view = view
- end
+# Legacy TemplateHandler stub
- def render(template, local_assigns = {})
- end
-
- def compile(template)
+module ActionView
+ module TemplateHandlers
+ module Compilable
end
+ end
- def compilable?
- self.class.compilable?
+ class TemplateHandler
+ def self.call(template)
+ new.compile(template)
end
end
end