Class: ContentProviders::ThoughtsDistortionVizProvider

Inherits:
BitCore::ContentProvider
  • Object
show all
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

Instance Method Details

#data_class_nameObject



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(options, link_to_fullpage = nil)
  options.view_context.render(
    template: "think_feel_do_engine/thoughts/distortion_viz",
    locals: {
      thoughts: options.view_context.current_participant.thoughts.harmful,
      link_to_view: link_to_fullpage
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/content_providers/thoughts_distortion_viz_provider.rb', line 19

def show_nav_link?
  false
end