lib/onebox/engine/html.rb in onebox-2.2.8 vs lib/onebox/engine/html.rb in onebox-2.2.9
- old
+ new
@@ -9,10 +9,11 @@
def http_params
{}
end
def raw
- @raw ||= Onebox::Helpers.fetch_html_doc(url, http_params)
+ body_cacher = self.options[:body_cacher] if self.options
+ @raw ||= Onebox::Helpers.fetch_html_doc(url, http_params, body_cacher)
end
def html?
raw.respond_to(:css)
end