lib/scribd-carrierwave.rb in scribd-carrierwave-0.1.0 vs lib/scribd-carrierwave.rb in scribd-carrierwave-0.1.1
- old
+ new
@@ -57,11 +57,11 @@
<div id="embedded_flash#{id}">#{options.delete(:alt)}</div>
<script type="text/javascript">
var scribd_doc = scribd.Document.getDoc(#{ipaper_id}, '#{ipaper_access_key}');
scribd_doc.addParam( 'jsapi_version', 2 );
#{options.map do |k,v|
- "scribd_doc.addParam('#{k.to_s}', #{v.is_a?(String) ? "'#{v.to_s}'" : v.to_s})"
- end.join('\n')}
+ " scribd_doc.addParam('#{k.to_s}', #{v.is_a?(String) ? "'#{v.to_s}'" : v.to_s});"
+ end.join("\n")}
scribd_doc.write("embedded_flash#{id}");
</script>
END
end