From 502c96fc8bff0a05336c95509d5dda6b90021c07 Mon Sep 17 00:00:00 2001 From: nex3 Date: Mon, 14 Jan 2008 00:52:16 +0000 Subject: [PATCH] Add compatibility with edge Rails. Thanks to Russell Norris for the patch. git-svn-id: svn://hamptoncatlin.com/haml/trunk@728 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/haml/template/plugin.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/haml/template/plugin.rb b/lib/haml/template/plugin.rb index fe57fd6d..eb4eac9a 100644 --- a/lib/haml/template/plugin.rb +++ b/lib/haml/template/plugin.rb @@ -8,6 +8,18 @@ module Haml 1 end + def self.compilable? + true + end + + def compilable? + self.class.compilable? + end + + def line_offset + self.class.line_offset + end + def initialize(view) @view = view end