lib/onebox/engine/wistia_onebox.rb in onebox-1.8.68 vs lib/onebox/engine/wistia_onebox.rb in onebox-1.8.69

- old
+ new

@@ -16,17 +16,17 @@ escaped_src = ::Onebox::Helpers.normalize_url_for_output(oembed_data[:thumbnail_url]) "<img src='#{escaped_src}' #{Helpers.title_attr(oembed_data)}>" end private - def oembed_data - @oembed_data ||= begin - oembed_url = "https://fast.wistia.com/oembed?embedType=iframe&url=#{url}" - response = Onebox::Helpers.fetch_response(oembed_url) rescue "{}" - Onebox::Helpers.symbolize_keys(::MultiJson.load(response)) - rescue - {} - end + def oembed_data + @oembed_data ||= begin + oembed_url = "https://fast.wistia.com/oembed?embedType=iframe&url=#{url}" + response = Onebox::Helpers.fetch_response(oembed_url) rescue "{}" + Onebox::Helpers.symbolize_keys(::MultiJson.load(response)) + rescue + {} end + end end end end