Modified: trunk/lib/rest.rb (2727 => 2728)
--- trunk/lib/rest.rb 2011-10-20 22:08:20 UTC (rev 2727)
+++ trunk/lib/rest.rb 2011-10-20 22:30:31 UTC (rev 2728)
@@ -98,7 +98,7 @@
render(:xml => doc.to_s, :status => "#{code} #{message}")
end
-def preview_url(ob, type)
+def resource_preview_url(ob, type)
url = ""
url.path << "/versions/#{ob.current_version}" if ob.respond_to?('current_version')
url.path << "/previews/#{type}"
@@ -244,7 +244,7 @@
if model_data['Encoding'][i] == 'preview'
- text = preview_url(ob, model_data['Accessor'][i])
+ text = resource_preview_url(ob, model_data['Accessor'][i])
else