think_feel_do_engine 3.19.8 → 3.19.9

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
  SHA1:
3
- metadata.gz: 44490ab377c55a5697d0f9cd55455ef8dbd7e365
4
- data.tar.gz: 97c16cd8be6225e6527fa30bc7cf50663e5f7213
3
+ metadata.gz: e695923c18d7bbe38d48ca8692b714f28e630869
4
+ data.tar.gz: 43a31f61ecdb2b90d2c2b6c3a2c025680fc42c00
5
5
  SHA512:
6
- metadata.gz: 0109f1af1b2d18f7082394276e1bd5b078e41202b3c21dc02509d23dba4e56480dbe0b566a39caec9575e3ce6e716a9c8925d123002640aa96a9e508eb223e7f
7
- data.tar.gz: 31afec2473200a51f94d1096f0f16ce83d8e2e7a8d7bcb4c6b5957d61120675c72e4e590bb29cd03459a2a1f7fc3f2282aacb7ac5ccfc07bafb7549f3756b55e
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?(BitCore::ContentProvider) &&
23
+ if @content_provider.is_a?(ContentProviderDecorator) &&
24
24
  @content_provider.source_content_id
25
25
  @slideshow = @content_provider.source_content
26
26
  end
@@ -105,7 +105,9 @@ class Participant < ActiveRecord::Base
105
105
  end
106
106
 
107
107
  def duration_of_last_session
108
- latest_action_at - current_sign_in_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
@@ -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.
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.19.8"
3
+ VERSION = "3.19.9"
4
4
  end
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.8
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-08 00:00:00.000000000 Z
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: