lib/deas/sinatra_runner.rb in deas-0.16.0 vs lib/deas/sinatra_runner.rb in deas-0.17.0
- old
+ new
@@ -65,9 +65,13 @@
self.content_type(get_content_type(template_name)) if self.content_type.nil?
Deas::Template.new(@sinatra_call, template_name, options).render(&block)
end
+ def send_file(*args, &block)
+ @sinatra_call.send_file(*args, &block)
+ end
+
private
def run_callbacks(callbacks)
callbacks.each{|proc| @handler.instance_eval(&proc) }
end