formulary: fix constant redefined warning.

This commit is contained in:
Mike McQuaid 2021-03-31 09:27:07 +01:00
parent 4f7bd240e1
commit 6be0b57a82
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -52,6 +52,7 @@ module Formulary
require "formula" require "formula"
mod = Module.new mod = Module.new
remove_const(namespace) if const_defined?(namespace)
const_set(namespace, mod) const_set(namespace, mod)
begin begin