Sha256: 1d95724dcba07a6174028426b3fd854c3a4518afc5c9b8fd502179362784618e
Contents?: true
Size: 699 Bytes
Versions: 55
Compression:
Stored size: 699 Bytes
Contents
module ContentProviders # Provides a form for a Participant to identify harmful Thoughts by their # ThoughtPatterns. class HarmfulThoughtsEditFormProvider < BitCore::ContentProvider def render_current(options) thoughts = options.participant.thoughts.harmful.no_pattern options.view_context.render( template: "think_feel_do_engine/thoughts/edit_bulk", locals: { thoughts: thoughts, update_path: options.view_context.participant_data_path } ) end def data_class_name "Thought" end def data_attributes [ :id, :pattern_id ] end def show_nav_link? false end end end
Version data entries
55 entries across 55 versions & 1 rubygems