Sha256: 960c1543d3c578407203ce17d34f4d5d28dda5e652a82f0091d3b0afacd20fbe

Contents?: true

Size: 703 Bytes

Versions: 13

Compression:

Stored size: 703 Bytes

Contents

# frozen_string_literal: true
module ContentProviders
  # Provides a set of forms to update a Participant's unhelpful Thoughts.
  class UnhelpfulThoughtsReflectionProvider < BitCore::ContentProvider
    def show_nav_link?
      false
    end

    def render_current(options)
      options.view_context.render(
        template: "think_feel_do_engine/thoughts/unhelpful_thoughts_form",
        locals: {
          thoughts: options.participant.thoughts.unreflected.last(3),
          update_path: options.view_context.participant_data_path
        }
      )
    end

    def data_attributes
      [:challenging_thought, :act_as_if, :id]
    end

    def data_class_name
      "Thought"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.8 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.7 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.6 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.5 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.4 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.2 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.1 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.22.0 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.21.2 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.21.1 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.21.0 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
think_feel_do_engine-3.20.1 app/models/content_providers/unhelpful_thoughts_reflection_provider.rb