rabl-rails/lib/rabl-fast-json/handler.rb
2012-02-22 19:14:00 +01:00

14 lines
307 B
Ruby

module RablFastJson
module Handlers
class Rabl
cattr_accessor :default_format
self.default_format = 'application/json'
def self.call(template)
%{
RablFastJson::Compiler.instance.compile_source(#{template.source.inspect}, self)
}
end
end
end
end