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