summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views/api_template_handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/views/api_template_handler.rb')
-rw-r--r--lib/redmine/views/api_template_handler.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/redmine/views/api_template_handler.rb b/lib/redmine/views/api_template_handler.rb
index f603c433c..298a20d0b 100644
--- a/lib/redmine/views/api_template_handler.rb
+++ b/lib/redmine/views/api_template_handler.rb
@@ -17,10 +17,8 @@
module Redmine
module Views
- class ApiTemplateHandler < ActionView::TemplateHandler
- include ActionView::TemplateHandlers::Compilable
-
- def compile(template)
+ class ApiTemplateHandler
+ def self.call(template)
"Redmine::Views::Builders.for(params[:format]) do |api|; #{template.source}; self.output_buffer = api.output; end"
end
end