Modified: branches/packs/Rakefile (3755 => 3756)
--- branches/packs/Rakefile 2013-10-14 09:18:29 UTC (rev 3755)
+++ branches/packs/Rakefile 2013-10-21 13:04:39 UTC (rev 3756)
@@ -370,3 +370,19 @@
end
end
end
+
+desc 'Clear RDF cache for research objects'
+task "myexp:ro:clean" do
+ require File.dirname(__FILE__) + '/config/environment'
+
+ Resource.all.each do |resource|
+ unless resource.is_resource
+ if resource.content_blob
+ resource.content_blob.destroy
+ resource.update_attribute(:content_blob, nil)
+ end
+ end
+ end
+
+end
+