lib/onebox/engine/standard_embed.rb in onebox-2.2.14 vs lib/onebox/engine/standard_embed.rb in onebox-2.2.15

- old
+ new

@@ -5,11 +5,10 @@ require 'onebox/oembed' module Onebox module Engine module StandardEmbed - def self.oembed_providers @@oembed_providers ||= {} end def self.add_oembed_provider(regexp, endpoint) @@ -114,11 +113,9 @@ Onebox::Helpers.fetch_response(oembed_url) rescue "{}" rescue Errno::ECONNREFUSED, Net::HTTPError, Net::HTTPFatalError, MultiJson::LoadError "{}" end - - protected def get_oembed_url oembed_url = nil StandardEmbed.oembed_providers.each do |regexp, endpoint|