think_feel_do_engine 3.19.8 → 3.19.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/think_feel_do_engine/bit_maker/content_providers_controller.rb +1 -1
- data/app/models/participant.rb +3 -1
- data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb +1 -1
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e695923c18d7bbe38d48ca8692b714f28e630869
|
|
4
|
+
data.tar.gz: 43a31f61ecdb2b90d2c2b6c3a2c025680fc42c00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d31f6ab1648f09f448e995bac2ba8b8e3685494c8ffb439be9cd4959f41bdbef581ceef83d80f9a92806ee5f0c4ad0ff32c9a3ec04455fea278484125e09e78
|
|
7
|
+
data.tar.gz: 5241013386ba0456ba8bbd16359607334e185af804e6b84abe28729e97b454e29a18aef18a0e2fbb8bdef01e2357a3c97c800f6b08917b6a0a2d4078c12f8337
|
|
@@ -20,7 +20,7 @@ module ThinkFeelDoEngine
|
|
|
20
20
|
authorize! :show, BitCore::ContentProvider
|
|
21
21
|
|
|
22
22
|
@content_provider = find_content_provider
|
|
23
|
-
if @content_provider.is_a?(
|
|
23
|
+
if @content_provider.is_a?(ContentProviderDecorator) &&
|
|
24
24
|
@content_provider.source_content_id
|
|
25
25
|
@slideshow = @content_provider.source_content
|
|
26
26
|
end
|
data/app/models/participant.rb
CHANGED
|
@@ -105,7 +105,9 @@ class Participant < ActiveRecord::Base
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def duration_of_last_session
|
|
108
|
-
latest_action_at
|
|
108
|
+
if latest_action_at && current_sign_in_at
|
|
109
|
+
latest_action_at - current_sign_in_at
|
|
110
|
+
end
|
|
109
111
|
end
|
|
110
112
|
|
|
111
113
|
def latest_action_at
|
data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_patient_login_stats.html.erb
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
<p>
|
|
42
42
|
<strong>Duration of Last Session:</strong>
|
|
43
|
-
<% if @participant.events.any? %>
|
|
43
|
+
<% if @participant.events.any? && @participant.duration_of_last_session %>
|
|
44
44
|
<%= distance_of_time_in_words(0, @participant.duration_of_last_session, include_seconds: true) %>
|
|
45
45
|
<% else %>
|
|
46
46
|
Not available because participant has no events to report.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: think_feel_do_engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.19.
|
|
4
|
+
version: 3.19.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Carty-Fickes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -993,3 +993,4 @@ signing_key:
|
|
|
993
993
|
specification_version: 4
|
|
994
994
|
summary: Summary of ThinkFeelDoEngine.
|
|
995
995
|
test_files: []
|
|
996
|
+
has_rdoc:
|