effective_learndash 0.3.1 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 055abebf5e32951051e740bb37503fa91de36e71ba4d29b3dbf15d856b92d58f
|
4
|
+
data.tar.gz: 368fca1c90d5cb2759e0877a13377ce7b29f247341921eda6dac4a1b4fb96535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c80d1913cc76209957f9f42cb36ae3db227322c87ddc3f0c65d3a0c81ac8246aeb96c5f0642493c879d6fbea9304845f634ecb392f169ffe7da497c16640930
|
7
|
+
data.tar.gz: e1fc10afb44eedcdbd258c117f1aded4d59bdbf9387969aa8f3e206af61cca428fd65fe63776208d5c15609f3a8f9f167cf816f43ccaa1ba6a0f7adaf2a48777
|
@@ -4,6 +4,8 @@ module Effective
|
|
4
4
|
belongs_to :learndash_course
|
5
5
|
belongs_to :learndash_user
|
6
6
|
|
7
|
+
acts_as_reportable if respond_to?(:acts_as_reportable)
|
8
|
+
|
7
9
|
log_changes(to: :learndash_course, except: [:last_synced_at]) if respond_to?(:log_changes)
|
8
10
|
|
9
11
|
PROGRESS_STATUSES = ['not-started', 'in-progress', 'completed']
|
@@ -31,6 +33,11 @@ module Effective
|
|
31
33
|
scope :deep, -> { all }
|
32
34
|
scope :sorted, -> { order(:id) }
|
33
35
|
|
36
|
+
# effective_reports
|
37
|
+
def reportable_scopes
|
38
|
+
{ completed: nil, in_progress: nil, not_started: nil }
|
39
|
+
end
|
40
|
+
|
34
41
|
before_validation do
|
35
42
|
self.owner ||= learndash_user&.owner
|
36
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_learndash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2023-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|