effective_reports 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70923b082133448581e40494e8a68f93c231a8441fd7bbeda0281554ffe9f78b
4
- data.tar.gz: 554d4e33b48736d92dbfed175a3aea01009f7fed5eda4c5f7bfcba8fe5c2c46e
3
+ metadata.gz: 1305cf7f8937e178a2d5eb94df49644b7249f01a856e1cd42b47277fca4f70b8
4
+ data.tar.gz: aeb156bd5fdaef4b66bb31546511ed06735374f939280d952a0530b9ff3b0a76
5
5
  SHA512:
6
- metadata.gz: 122a4720d2e2c3e883a53138ac7bcf954885b85d27ac486f92ee887471e9ae50be45a28e2bb1118cf57cffdd125557d499c09a1d4a4ff456bc7049f4c15f5659
7
- data.tar.gz: da2fce3831d715481f6180e9a73882fd79ca3604ff061269a5542316669038f43cffcac4bbf8d41e124d8ac7de5304c118d9af070ae37edadd145dfd944c3b7d
6
+ metadata.gz: 46a1c37be1ab24c71263269ef3b981a66bb9854b18349821190c298a24d96b7bace90565173153eb468b32ec3fe5c9f9f3295201f8e1359a5236c6ea5cd1dd68
7
+ data.tar.gz: fef84a63e254279dfb27d8b0c9c31991c7f6232e6fc4af6923e1607ae440575eba691fff37dbe46ef2800dbdc283fa87d8e0ef8f1754e94d441c2bc4b2ba7494
@@ -23,7 +23,7 @@ class EffectiveReportDatatable < Effective::Datatable
23
23
  end
24
24
 
25
25
  def report
26
- Effective::Report.find(attributes[:report_id])
26
+ Effective::Report.deep.find(attributes[:report_id])
27
27
  end
28
28
 
29
29
  end
@@ -29,7 +29,12 @@ module Effective
29
29
  timestamps
30
30
  end
31
31
 
32
- scope :deep, -> { includes(:report_columns, :report_scopes) }
32
+ scope :deep, -> {
33
+ base = includes(:report_columns, :report_scopes)
34
+ base = base.includes(:notifications) if defined?(EffectiveMessaging)
35
+ base
36
+ }
37
+
33
38
  scope :sorted, -> { order(:title) }
34
39
  scope :notifiable, -> { where(id: ReportColumn.notifiable.select(:report_id)) }
35
40
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveReports
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-07 00:00:00.000000000 Z
11
+ date: 2023-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails