From 27386ba714ea9da245fadb76c125220d74da25eb Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Fri, 12 Mar 2021 12:42:32 -0600 Subject: [PATCH] FIX: Kernel.open is deprecated (#12387) --- app/models/topic_embed.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/topic_embed.rb b/app/models/topic_embed.rb index 575c5370c37..e86a5bd1fa5 100644 --- a/app/models/topic_embed.rb +++ b/app/models/topic_embed.rb @@ -255,6 +255,9 @@ class TopicEmbed < ActiveRecord::Base end end + def self.open(uri, **kwargs) + URI.open(uri, **kwargs) + end end # == Schema Information