daengine 0.3.7 → 0.3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/digital_asset.rb +2 -0
- data/lib/daengine/version.rb +1 -1
- metadata +2 -2
data/app/models/digital_asset.rb
CHANGED
@@ -54,6 +54,7 @@ class DigitalAsset
|
|
54
54
|
scope :orderable, -> {where(orderable: true)}
|
55
55
|
scope :has_finra, -> {where(:'documents.content_type' => '549')}
|
56
56
|
scope :audience_in, ->(audience) {where(:audiences.in => audience)}
|
57
|
+
scope :alphabetical, order_by(:title => :asc)
|
57
58
|
# scope :order_by_fund, order_by[[:product_ids, :asc]]
|
58
59
|
|
59
60
|
# validations
|
@@ -84,6 +85,7 @@ class DigitalAsset
|
|
84
85
|
end
|
85
86
|
ids
|
86
87
|
end
|
88
|
+
alias :doctype_ids :content_type_ids
|
87
89
|
|
88
90
|
def has_finra?
|
89
91
|
finra_document != nil
|
data/lib/daengine/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: daengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.7
|
5
|
+
version: 0.3.7.1
|
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: 2012-09-
|
13
|
+
date: 2012-09-07 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|