]> git.wincent.com - wikitext.git/commitdiff
Avoid a Rails 3.1 deprecation warning
authorWincent Colaiuta <win@wincent.com>
Sat, 28 May 2011 05:45:03 +0000 (22:45 -0700)
committerWincent Colaiuta <win@wincent.com>
Sat, 28 May 2011 05:45:03 +0000 (22:45 -0700)
Specifically:

  DEPRECATION WARNING: Inheriting from ActionView::Template::Handler is
  deprecated. Since Rails 3, all the API your template handler needs to
  implement is to respond to #call.

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

index 00c74180c4d46cb288c8b1c93b5f6963e2f2b362..f516ecfbe0e79b852bce5320aa8ddf6422e04c07 100644 (file)
@@ -27,7 +27,7 @@ require 'wikitext/string'
 module ActionView
   class Template
     module Handlers
-      class Wikitext < Handler
+      class Wikitext
         include Compilable
 
         def compile template