From f4e87a5f399f464a531ef44711df5e1bc6e89497 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Thu, 24 May 2018 10:57:18 +0200 Subject: [PATCH] [bugfix] register extension with sinatra using the configure block alone now will work for most of the required settings --- lib/sinatra/cross_origin.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sinatra/cross_origin.rb b/lib/sinatra/cross_origin.rb index 072e182..cf1e697 100644 --- a/lib/sinatra/cross_origin.rb +++ b/lib/sinatra/cross_origin.rb @@ -79,4 +79,6 @@ def self.registered(app) end end + + register CrossOrigin end