Sha256: c943c3aec71430b766dec41f060f4a4974c6167e6fd0a725491cffb976bdd860
Contents?: true
Size: 834 Bytes
Versions: 13
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true module ContentProviders # Displays all feelings the participant has had in the past class IndexPastFeelProvider < BitCore::ContentProvider def data_class_name "Emotion" end def render_current(options) participant = options.view_context.current_participant visualization_service = MoodAndEmotionVisualizationService .new(participant) options.view_context.render( template: "think_feel_do_engine/emotions/index", locals: { emotional_ratings: visualization_service .emotional_rating_daily_averages, mood_ratings: visualization_service .mood_rating_daily_averages } ) end def show_nav_link? true end end end
Version data entries
13 entries across 13 versions & 1 rubygems