Class: ContentProviders::UnhelpfulThoughtsReflectionProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::UnhelpfulThoughtsReflectionProvider
- Defined in:
- app/models/content_providers/unhelpful_thoughts_reflection_provider.rb
Overview
Provides a set of forms to update a Participant’s unhelpful Thoughts.
Instance Method Summary collapse
- #data_attributes ⇒ Object
- #data_class_name ⇒ Object
- #render_current(options) ⇒ Object
- #show_nav_link? ⇒ Boolean
Instance Method Details
#data_attributes ⇒ Object
19 20 21 |
# File 'app/models/content_providers/unhelpful_thoughts_reflection_provider.rb', line 19 def data_attributes [:challenging_thought, :act_as_if, :id] end |
#data_class_name ⇒ Object
23 24 25 |
# File 'app/models/content_providers/unhelpful_thoughts_reflection_provider.rb', line 23 def data_class_name "Thought" end |
#render_current(options) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/models/content_providers/unhelpful_thoughts_reflection_provider.rb', line 9 def render_current() .view_context.render( template: "think_feel_do_engine/thoughts/unhelpful_thoughts_form", locals: { thoughts: .participant.thoughts.unreflected.last(3), update_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
5 6 7 |
# File 'app/models/content_providers/unhelpful_thoughts_reflection_provider.rb', line 5 def show_nav_link? false end |