app/models/digital_asset.rb in daengine-0.2.1 vs app/models/digital_asset.rb in daengine-0.2.2

- old
+ new

@@ -56,9 +56,17 @@ end def self.bulk_processed? (stale.count.to_f / self.count) <= 0.05 end + + def content_type_ids + ids = [] + documents.try :each do |d| + ids << d.content_type + end + ids + end end class DigitalAsset::Document include Mongoid::Document