app/models/digital_asset.rb in daengine-0.2.15 vs app/models/digital_asset.rb in daengine-0.2.16

- old
+ new

@@ -20,11 +20,11 @@ field :product_ids, type: Array, default: [] field :published_at, type: Time field :unpublished_at, type: Time field :expires_at, type: Time field :guid, type: String - field :fund_ids, type: Array, default: [] + # field :fund_ids, type: Array, default: [] field :business_owner, type: String field :summary, type: String field :content_organization_ids, type: Array, default: [] field :program_ids, type: Array, default: [] field :omniture_codes, type: Array, default: [] @@ -38,10 +38,10 @@ accepts_nested_attributes_for :documents scope :title_is, ->(title) { where(:title => title)} scope :business_owner_is, ->(business_owner) { where(:business_owner => business_owner)} scope :guid_is, ->(guid) { where(:guid => guid)} - scope :funds_in, ->(fund_id) { where(:fund_ids.in => fund_id)} + # scope :funds_in, ->(fund_id) { where(:fund_ids.in => fund_id)} scope :audience_in, ->(audience_id) {where(:audiences.in => audience_id)} 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)}