daengine 0.4.0.1 → 0.4.0.2

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.
@@ -30,7 +30,8 @@ class DigitalAsset
30
30
 
31
31
  accepts_nested_attributes_for :documents
32
32
 
33
- default_scope not_in(:'documents.content_type' => [ContentType::XBRL_DOCUMENT])
33
+ default_scope {excludes(:'documents.content_type' => ContentType::XBRL_DOCUMENT)}
34
+ #default_scope {not_in(:'documents.content_type' => [ContentType::XBRL_DOCUMENT])}
34
35
  scope :title_is, ->(title) { where(:title => title)}
35
36
  scope :business_owner_is, ->(business_owner) { where(:business_owner => business_owner)}
36
37
  scope :guid_is, ->(guid) { where(:guid => guid)}
@@ -49,7 +50,7 @@ class DigitalAsset
49
50
  scope :has_finra, -> {where(:'documents.content_type' => ContentType::FINRA)}
50
51
  scope :audience_in, ->(audience) {where(:audiences.in => audience)}
51
52
  scope :alphabetical, order_by(:title => :asc)
52
- #scope :not_xbrl, -> {excludes(:'documents.content_type' => ContentType::XBRL_DOCUMENT)}
53
+ scope :not_xbrl, -> {excludes(:'documents.content_type' => ContentType::XBRL_DOCUMENT)}
53
54
  # scope :order_by_fund, order_by[[:product_ids, :asc]]
54
55
 
55
56
  # validations
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.4.0.1"
2
+ VERSION = "0.4.0.2"
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.1
5
+ version: 0.4.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - sbhatia