module Daengine class ContentServiceProcessor def self.is_windows? processor, platform, *rest = RUBY_PLATFORM.split("-") platform =~ /mswin/ || platform =~ /mingw/ end def self.process_orderable result = DigitalAsset.all cs = ContentServiceResource.find_all result.each{ |da| set_orderable(da,cs)} end def self.set_orderable(da,cs) cs.each do |c| if da.sami_code == c.attributes[:samiCode] da.orderable = c.attributes[:orderable] da.save! break end end end end end