lib/onebox/preview.rb in onebox-2.1.5 vs lib/onebox/preview.rb in onebox-2.1.6

- old
+ new

@@ -29,9 +29,19 @@ sanitize process_html engine.placeholder_html rescue *WEB_EXCEPTIONS "" end + def errors + return {} unless engine + engine.errors + end + + def data + return {} unless engine + engine.data + end + def options OpenStruct.new(@options) end private