myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2562] trunk: fixed issue with components always


From: noreply
Subject: [myexperiment-hackers] [2562] trunk: fixed issue with components always using the latest version
Date: Thu, 24 Feb 2011 09:39:41 -0500 (EST)

Revision
2562
Author
dgc
Date
2011-02-24 09:39:40 -0500 (Thu, 24 Feb 2011)

Log Message

fixed issue with components always using the latest version

Modified Paths

Diff

Modified: trunk/app/models/workflow.rb (2561 => 2562)


--- trunk/app/models/workflow.rb	2011-02-22 00:35:01 UTC (rev 2561)
+++ trunk/app/models/workflow.rb	2011-02-24 14:39:40 UTC (rev 2562)
@@ -79,6 +79,13 @@
     # This is required to keep the contribution's updated_at field accurate.
     after_save { |wv| wv.workflow.contribution.save if wv.workflow.contribution && wv.version != wv.workflow.current_version }
     
+    def components
+      if workflow.processor_class
+        workflow.processor_class.new(content_blob.data).get_components
+      else
+        XML::Node.new('components')
+      end
+    end
   end
   
   non_versioned_columns.push("license_id", "tag_list")

Modified: trunk/config/tables.xml


(Binary files differ)

reply via email to

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