Class: ContentProviders::ThoughtsDistortionVizProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::ThoughtsDistortionVizProvider
- Defined in:
- app/models/content_providers/thoughts_distortion_viz_provider.rb
Overview
Provides a form for a Participant to enter a Thought.
Instance Method Summary collapse
- #data_class_name ⇒ Object
- #render_current(options, link_to_fullpage = nil) ⇒ Object
- #show_nav_link? ⇒ Boolean
Instance Method Details
#data_class_name ⇒ Object
5 6 7 |
# File 'app/models/content_providers/thoughts_distortion_viz_provider.rb', line 5 def data_class_name "Thought" end |
#render_current(options, link_to_fullpage = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/models/content_providers/thoughts_distortion_viz_provider.rb', line 9 def render_current(, link_to_fullpage = nil) .view_context.render( template: "think_feel_do_engine/thoughts/distortion_viz", locals: { thoughts: .view_context.current_participant.thoughts.harmful, link_to_view: link_to_fullpage } ) end |
#show_nav_link? ⇒ Boolean
19 20 21 |
# File 'app/models/content_providers/thoughts_distortion_viz_provider.rb', line 19 def show_nav_link? false end |