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")