module JsonbAccessor::Macro
def build_class_namespace(class_name)
def build_class_namespace(class_name) class_name = class_name.gsub(CONSTANT_SEPARATOR, "") if JsonbAccessor.constants.any? { |c| c.to_s == class_name } class_namespace = JsonbAccessor.const_get(class_name) else class_namespace = Module.new JsonbAccessor.const_set(class_name, class_namespace) end class_namespace end