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: 5668537a713f4dfb4ab717ca409307037bdacf48ae3d65641e6f7b34823dfe02
4
- data.tar.gz: 621b4ca72c71f850efa58f7f37bd32d3ffc36bd766cd2a1d04ab11757f5395ea
3
+ metadata.gz: 055abebf5e32951051e740bb37503fa91de36e71ba4d29b3dbf15d856b92d58f
4
+ data.tar.gz: 368fca1c90d5cb2759e0877a13377ce7b29f247341921eda6dac4a1b4fb96535
5
5
  SHA512:
6
- metadata.gz: d0d579a72df6c9eac74286cb06f954a1451f99e9f47b6f74ddb2952e06de6c5fda0581f4b5810b1bb0500b8a8a3ca9d215f7d3b3fa291b039c3f139ba889ac46
7
- data.tar.gz: 8919eed95efd40cabfe020cf31d0284e053985958254bce2d48d2215af0a10c2cc094f23ea71ba16d46293346cc89a380221bb26152bceba5876e58fd982e481
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveLearndash
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  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.1
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: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2023-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails