Sha256: 4face2d433fc0161dad370264be66f53a65e749c05979f2a3acc33bd8b5df764

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

module ThinkFeelDoEngine
  module Coach
    # Present Participant Thoughts Visualization to the Coach.
    class ParticipantThoughtsVisualizationsController < ApplicationController
      before_action :authenticate_user!

      def show
        @participant = Participant.find(params[:participant_id])
        thoughts = @participant.thoughts.harmful
        render "think_feel_do_engine/thoughts/distortion_viz",
               locals: { thoughts: thoughts, link_to_view: nil }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
think_feel_do_engine-3.10.9 app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb
think_feel_do_engine-3.10.8 app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb
think_feel_do_engine-3.10.7 app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb
think_feel_do_engine-3.10.6 app/controllers/think_feel_do_engine/coach/participant_thoughts_visualizations_controller.rb