module Sinatra
def application=(value)
def application=(value) raise ArgumentError unless value.nil? sinatra_warn "Setting Sinatra.application to nil is deprecated; create a new instance instead." Sinatra.class_eval do remove_const :Application const_set :Application, Class.new(Sinatra::Default) end end