think_feel_do_engine 3.15.4 → 3.15.5

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: 23b9ab645ab15d203d078b5afd015c2b5c684b3a
4
- data.tar.gz: 29e887783f45b3cd28d008bce648dd4081c13e2a
3
+ metadata.gz: 5e44f02df112a651ffc59483c5d7dde25f94a795
4
+ data.tar.gz: 82b15da38c77d778f67c0b19e43b0adbdc9c450f
5
5
  SHA512:
6
- metadata.gz: 61f18520cdb25aa8d3c3fbcf873475a61fc8eeb5c0b235b2340c334846a0f0157ecec3f9b610aba69ab79707ba0442caa763724fe6c80f0c020ce0ed903a8208
7
- data.tar.gz: e2b422800e160c05c0812c3bb869aedffa9ca8e7a85af62f432f9e5354372ea29d70679ee5beccbcb266a009d56596e5097f1b4ea42c6bf26427c2fbf33b36f4
6
+ metadata.gz: 89e6479d68ea85c6d91dd8e16f2149218d1d4212b75599c1e7ec44a19a1f9025aeefc5ff013aa19fd80e17f98e32976aec8ed11247a40735288500f550d1b57e
7
+ data.tar.gz: 184e7f387b8f33461fe129bf039e321b01df6f7fd24efcdec1ea6acdc8716ebc8e2bb987063c008c5925befdffd65f2551230085f3ca3caff708732e6e6fac21
@@ -69,6 +69,10 @@ class ContentProviderDecorator
69
69
  content_policy.errors.full_messages)
70
70
  end
71
71
 
72
+ def pretty_title
73
+ type.tableize.parameterize.titleize.singularize
74
+ end
75
+
72
76
  def save
73
77
  content_provider.transaction do
74
78
  content_provider.save!
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div class="form-group">
19
19
  <%= f.label :type %>
20
- <%= f.select :type, ContentProviderDecorator.content_provider_classes.sort_by! { |p| p.new.pretty_label }.collect { |p| [p.new.type, p] }, { prompt: "Choose Type" }, class: "form-control" %>
20
+ <%= f.select :type, ContentProviderDecorator.content_provider_classes.sort_by! { |p| p.new.pretty_label }.collect { |p| [ContentProviderDecorator.new(type: p.new.type).pretty_title, p] }, { prompt: "Choose Type" }, class: "form-control" %>
21
21
  </div>
22
22
 
23
23
  <div class="form-group">
@@ -1,5 +1,11 @@
1
1
  <tr class="learning_lesson_row">
2
- <td class="learning_lesson_title"><%= content_provider.source_content.pretty_title %></td>
2
+ <td class="learning_lesson_title">
3
+ <% if content_provider.source_content %>
4
+ <%= content_provider.source_content.pretty_title %>
5
+ <% else %>
6
+ <%= ContentProviderDecorator.new(type: content_provider.type).pretty_title %>
7
+ <% end %>
8
+ </td>
3
9
  <%= render partial: "think_feel_do_engine/coach/group_dashboard/lesson_completion_breakdown",
4
10
  locals: { task: task } %>
5
- </tr>
11
+ </tr>
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module ThinkFeelDoEngine
3
- VERSION = "3.15.4"
3
+ VERSION = "3.15.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: think_feel_do_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.4
4
+ version: 3.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes