Class: ContentProviders::UnhelpfulThoughtsListProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::UnhelpfulThoughtsListProvider
- Defined in:
- app/models/content_providers/unhelpful_thoughts_list_provider.rb
Overview
Provides a list of a Participant’s unhelpful Thoughts.
Instance Method Summary collapse
Instance Method Details
#data_class_name ⇒ Object
5 6 7 |
# File 'app/models/content_providers/unhelpful_thoughts_list_provider.rb', line 5 def data_class_name "Thought" end |
#render_current(options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/content_providers/unhelpful_thoughts_list_provider.rb', line 9 def render_current() @thoughts = .participant.thoughts.unreflected @view = .view_context @view.render( template: "think_feel_do_engine/thoughts/index", locals: { title: provider_title, thoughts: @thoughts.last(3), postscript: provider_postscript, show_nav_link: (@thoughts.count > 0) } ) end |
#show_nav_link? ⇒ Boolean
23 24 25 |
# File 'app/models/content_providers/unhelpful_thoughts_list_provider.rb', line 23 def show_nav_link? false end |