daengine 0.4.0.3 → 0.4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,7 @@ class DigitalAsset
41
41
  scope :content_organization_in, ->(content_organization_id) {where(:content_organization_ids.in => content_organization_id)}
42
42
  scope :program_id_in, ->(program_id) {where(:program_ids.in => program_id)}
43
43
  scope :sami_is, ->(sami_code) {where(:sami_code => sami_code)}
44
+ scope :sami_in, ->(sami_codes) {where(:sami_code.in => sami_codes)}
44
45
  scope :path_is, ->(path) {where(:'documents.path' => path)}
45
46
  scope :doctype_in, ->(types) {where(:'documents.content_type'.in => types)}
46
47
  scope :content_type_in, ->(types) {where(:'documents.content_type'.in => types)}
@@ -35,4 +35,8 @@ class DigitalAssetLookupService
35
35
  digital_assets
36
36
  end
37
37
 
38
+ def self.find_documents_by_sami_code(sami_codes)
39
+ DigitalAsset.sami_in sami_codes
40
+ end
41
+
38
42
  end
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.4.0.3"
2
+ VERSION = "0.4.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: daengine
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0.3
5
+ version: 0.4.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - sbhatia
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-09 00:00:00.000000000Z
13
+ date: 2013-01-11 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails