lib/deas/sinatra_runner.rb in deas-0.9.0 vs lib/deas/sinatra_runner.rb in deas-0.10.0

- old
+ new

@@ -32,22 +32,18 @@ def halt(*args) @sinatra_call.halt(*args) end - def render(name, options = nil, &block) + def render(template_name, options = nil, &block) options ||= {} options[:locals] = { :view => @handler }.merge(options[:locals] || {}) options[:layout] ||= @handler_class.layouts - Deas::Template.new(@sinatra_call, name, options).render(&block) + Deas::Template.new(@sinatra_call, template_name, options).render(&block) end def redirect(*args) @sinatra_call.redirect(*args) - end - - def redirect_to(path, *args) - @sinatra_call.redirect(@sinatra_call.to(path), *args) end private def run_callbacks(callbacks)