]> git.wincent.com - wikitext.git/commitdiff
Add back template handler registration
authorWincent Colaiuta <win@wincent.com>
Sun, 4 Jan 2009 15:39:44 +0000 (16:39 +0100)
committerWincent Colaiuta <win@wincent.com>
Sun, 4 Jan 2009 15:39:44 +0000 (16:39 +0100)
In copying over the fix I inadvertantly ripped out a crucial line
required for the template handler to take effect.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
lib/wikitext/rails.rb

index 4576a8ffaff7442b467cb3f5d0bea1ed07f52be9..8227f02a17292d965b3aa1dc073d8538cacef0a8 100644 (file)
@@ -16,10 +16,10 @@ require 'wikitext/string'
 
 module Wikitext
   class TemplateHandler
-
-    # tested with Rails 2.2.2: the API has now changed so many times that I'm no longer going to support older versions of Rails
     def self.call template
       'template.source.w'
     end
   end
 end
+
+ActionView::Template.register_template_handler :wikitext, Wikitext::TemplateHandler