effective_learndash 0.3.0 → 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: 6f337241059d2a7d32983718e5ad460f451009b0bb8c9e51729bf58f3f438333
4
- data.tar.gz: 5af7710c6db4713c0977ed19b07a317fd29241ba04fd2f4239559951eddeb526
3
+ metadata.gz: 055abebf5e32951051e740bb37503fa91de36e71ba4d29b3dbf15d856b92d58f
4
+ data.tar.gz: 368fca1c90d5cb2759e0877a13377ce7b29f247341921eda6dac4a1b4fb96535
5
5
  SHA512:
6
- metadata.gz: 99c1c6294f0a21f59db73c8fa40ff8ecc257c4987ae9852f77e30037dfb2861a81fffc3dfb902719146f41ca39cbed4bbdd978a590419364122807eef5bfd560
7
- data.tar.gz: 678c28868f9770627929b5e566761cf16b1427042bbf548976c5bd24a4b9317ee59b16b6bd61e1d4f071bfe26bde27d25a50ea476433ddde858b28ab58204595
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
@@ -3,8 +3,8 @@
3
3
 
4
4
  - if all_steps_content.present?
5
5
  .card.mb-4
6
- .card-body= all_steps_content
6
+ .card-body= all_steps_content.to_s
7
7
 
8
8
  - if step_content.present?
9
9
  .card.mb-4
10
- .card-body= step_content
10
+ .card-body= step_content.to_s
@@ -1,3 +1,3 @@
1
1
  module EffectiveLearndash
2
- VERSION = '0.3.0'.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.0
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-08-24 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