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