Skip to content

A platform for community discussion. Free, open, simple.

FIX: Kernel.open is deprecated (#12387)

Daniel Waterworth27386ba714ea
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