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.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template_handler.rb b/actionpack/lib/action_view/template_handler.rb
index 8ce31ade49..b2c6ff3e36 100644
--- a/actionpack/lib/action_view/template_handler.rb
+++ b/actionpack/lib/action_view/template_handler.rb
@@ -4,6 +4,10 @@ module ActionView
0
end
+ def self.compilable?
+ false
+ end
+
def initialize(view)
@view = view
end
@@ -14,6 +18,14 @@ module ActionView
def compile(template)
end
+ def compilable?
+ self.class.compilable?
+ end
+
+ def line_offset
+ self.class.line_offset
+ end
+
# Called by CacheHelper#cache
def cache_fragment(block, name = {}, options = nil)
end