module Sinatra
def self.const_missing(const_name) #:nodoc:
Make Sinatra::EventContext an alias for Sinatra::Application to unbreak plugins.
def self.const_missing(const_name) #:nodoc: if const_name == :EventContext const_set :EventContext, Sinatra::Application sinatra_warn 'Sinatra::EventContext is deprecated; use Sinatra::Application instead.' Sinatra::Application else super end end