myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2728] trunk/lib/rest.rb: renamed method to avoid


From: noreply
Subject: [myexperiment-hackers] [2728] trunk/lib/rest.rb: renamed method to avoid spurious deprecation message
Date: Thu, 20 Oct 2011 18:30:31 -0400 (EDT)

Revision
2728
Author
dgc
Date
2011-10-20 18:30:31 -0400 (Thu, 20 Oct 2011)

Log Message

renamed method to avoid spurious deprecation message

Modified Paths

Diff

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
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]