think_feel_do_engine 3.14.5 → 3.14.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08e7a5e4921610620c52fac43b67cf51d7f28234
|
4
|
+
data.tar.gz: a8a70cae1d2a29a65b7a16aed85af54a71ec61d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a13657f4377dd27419d76480f745c94ec63a378833dd6d1db5c0e8824ef2937a9583881db5e6e871e1180e341bb6a68c62f05adfaf5058b365605734bd7eee7
|
7
|
+
data.tar.gz: 797ab24a7eff630f63249f454f3c2b39d4f0382fd3870a3996ae2985ec07305c4e58dc2b00e7237883c6059a5ab548c49f7541e2cf99ad32c8b00984de635b27
|
@@ -3,25 +3,16 @@ module ContentProviders
|
|
3
3
|
# Allows participants to record a new gratitude recording
|
4
4
|
class IndexProvider < BitCore::ContentProvider
|
5
5
|
def render_current(options)
|
6
|
-
options.view_context
|
6
|
+
view_context = options.view_context
|
7
|
+
|
8
|
+
view_context.render(
|
7
9
|
template: "think_feel_do_engine/gratitude_recordings/index_provider",
|
8
10
|
locals: {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
provider_id: first_new_provider
|
13
|
-
.try(:id),
|
14
|
-
content_position: 1),
|
15
|
-
gratitude_recordings: options
|
16
|
-
.view_context.current_participant.gratitude_recordings
|
11
|
+
gratitude_recordings: view_context
|
12
|
+
.current_participant
|
13
|
+
.gratitude_recordings
|
17
14
|
})
|
18
15
|
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def first_new_provider
|
23
|
-
NewProvider.first
|
24
|
-
end
|
25
16
|
end
|
26
17
|
end
|
27
18
|
end
|