app/models/digital_asset.rb in daengine-0.3.7.1 vs app/models/digital_asset.rb in daengine-0.3.7.2

- old
+ new

@@ -46,9 +46,10 @@ scope :content_organization_in, ->(content_organization_id) {where(:content_organization_ids.in => content_organization_id)} scope :program_id_in, ->(program_id) {where(:program_ids.in => program_id)} scope :sami_is, ->(sami_code) {where(:sami_code => sami_code)} scope :path_is, ->(path) {where(:'documents.path' => path)} scope :doctype_in, ->(types) {where(:'documents.content_type'.in => types)} + scope :content_type_in, ->(types) {where(:'documents.content_type'.in => types)} scope :product_in, ->(types) {where(:product_ids.in => types)} scope :stale, -> {where(:updated_at.lte => 2.minutes.ago)} scope :orderable_is, ->(orderable) {where(:orderable => orderable)} scope :orderable, -> {where(orderable: true)} scope :has_finra, -> {where(:'documents.content_type' => '549')}