Permalink
Browse files

Use rails 3.x ActionView API.

  • Loading branch information...
1 parent 5c902f7 commit c1095c8cbe8627925149b97d1b46bcc3fd891443 @botandrose botandrose committed Sep 16, 2011
Showing with 3 additions and 5 deletions.
  1. +1 −1 lib/ekuseru.rb
  2. +2 −4 lib/template_handler/eku.rb
View
@@ -5,7 +5,7 @@
require 'template_handler/eku'
require 'template_handler/options'
-ActionView::Template.register_template_handler 'eku', Ekuseru::TemplateHandler::Eku
+ActionView::Template.register_template_handler :eku, Ekuseru::TemplateHandler::Eku.new
class ActionView::Base
private
@@ -2,10 +2,8 @@
module Ekuseru
module TemplateHandler
- class Eku < ActionView::TemplateHandler
- include ActionView::TemplateHandlers::Compilable
-
- def compile template
+ class Eku
+ def call template
%{
_ekuseru_setup
xls = Spreadsheet::Workbook.new

0 comments on commit c1095c8

Please sign in to comment.