|
From: | noreply |
Subject: | [myexperiment-hackers] [2678] trunk/lib/rest.rb: Minor fix to provide resource= on content types. |
Date: | Thu, 18 Aug 2011 04:54:46 -0400 (EDT) |
Minor fix to provide resource= on content types.
--- trunk/lib/rest.rb 2011-08-17 16:31:40 UTC (rev 2677)
+++ trunk/lib/rest.rb 2011-08-18 08:54:44 UTC (rev 2678)
@@ -572,7 +572,7 @@
when 'Job'; return experiment_job_url(ob.experiment, ob)
when 'PackContributableEntry'; return rest_resource_uri(ob.contributable)
when 'PackRemoteEntry'; return ob.uri
- when 'ContentType'; return nil
+ when 'ContentType'; return content_type_url(ob)
when 'License'; return license_url(ob)
when 'CurationEvent'; return nil
[Prev in Thread] | Current Thread | [Next in Thread] |