effective_reports 0.1.3 → 0.2.0

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: 991d7b212a5902f3a50a65e1a9ab6261772f610d5b9c34fd531cd42d8fc8dd21
4
- data.tar.gz: 880c5838c51e1f53fa71549d578e290f3b09c70388f0351d8d9b47972829afae
3
+ metadata.gz: 7e8af98bc740da567e5817f47c85c8c6fdc84b3c426d87dfa2ebd27e43f68cc2
4
+ data.tar.gz: 6243524e413ddb99b6c5ea1d87b9bb70f9fe581a7379f07cc5342728cac5cf83
5
5
  SHA512:
6
- metadata.gz: 35c55dd39bc05eaf96a9308ba9193f9f188fd5248f1c3f31b8398c20cae3fc110bf15156fc8d6696ab4f16a6ba5f9b30d3ccab8c15b1f048805173f9bb90080d
7
- data.tar.gz: 639050630369e02d01d5fcb7e43019d70f1d96b03e5ccb24dc32cad0ac6b051ba5a20f73d1c8feb3253d6200c3fad47bc98715d18cef9f05237691b0f09efacf
6
+ metadata.gz: a999a402c388c5c1f4c6324ca65461366277fd7ba1395ebbf7e00b104f929dcdbbb48717dec71ddc0488be131b4b2d2f9062d1341b25007c8467f98297f8f813
7
+ data.tar.gz: a007445b4207e5a57362aeaad6efa004149d201991ddb449bd4752cc1dea6020be0866e7df56c2016abd1b7e05d28747dd7e2a68e20e4e9b3faf42c4ccea701e
@@ -2,7 +2,7 @@ module Effective
2
2
  class Report < ActiveRecord::Base
3
3
  self.table_name = EffectiveReports.reports_table_name.to_s
4
4
 
5
- belongs_to :created_by, polymorphic: true
5
+ belongs_to :created_by, polymorphic: true, optional: true
6
6
 
7
7
  has_many :report_columns, -> { ReportColumn.sorted }, inverse_of: :report, dependent: :delete_all
8
8
  accepts_nested_attributes_for :report_columns, allow_destroy: true, reject_if: proc { |atts| atts['name'].blank? }
@@ -44,7 +44,7 @@ module Effective
44
44
  end
45
45
 
46
46
  def email_report_column
47
- report_columns.find { |column| column.name.include?('email') }
47
+ report_columns.find { |column| column.name == 'email' } || report_columns.find { |column| column.name.include?('email') }
48
48
  end
49
49
 
50
50
  # Used to build the Reports form
@@ -1,3 +1,3 @@
1
1
  module EffectiveReports
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.2.0'.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.1.3
4
+ version: 0.2.0
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-02-01 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 4.0.0
55
- - !ruby/object:Gem::Dependency
56
- name: effective_orders
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: effective_resources
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,34 +66,6 @@ dependencies:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: effective_roles
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: wicked
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
69
  - !ruby/object:Gem::Dependency
112
70
  name: sqlite3
113
71
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +151,7 @@ dependencies:
193
151
  - !ruby/object:Gem::Version
194
152
  version: '0'
195
153
  - !ruby/object:Gem::Dependency
196
- name: effective_email_templates
154
+ name: effective_addresses
197
155
  requirement: !ruby/object:Gem::Requirement
198
156
  requirements:
199
157
  - - ">="