Sha256: e731c0d54929ab2672d6dc9e9560badd41a305824e1cdeac16501d5cc1465452

Contents?: true

Size: 730 Bytes

Versions: 4

Compression:

Stored size: 730 Bytes

Contents

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

      RenderOptions = Struct.new(
        :view_context, :app_context, :position, :participant
      )

      def show
        @participant = Participant.find(params[:participant_id])
        provider = ContentProviders::YourActivitiesProvider.new
        options = RenderOptions.new(
          self,
          @participant.navigation_status,
          @participant.navigation_status.content_position,
          @participant
        )
        provider.render_current(options)
      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_activities_visualizations_controller.rb
think_feel_do_engine-3.10.8 app/controllers/think_feel_do_engine/coach/participant_activities_visualizations_controller.rb
think_feel_do_engine-3.10.7 app/controllers/think_feel_do_engine/coach/participant_activities_visualizations_controller.rb
think_feel_do_engine-3.10.6 app/controllers/think_feel_do_engine/coach/participant_activities_visualizations_controller.rb