Class: ContentProviders::HelpfulThoughtsIndexProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::HelpfulThoughtsIndexProvider
- Defined in:
- app/models/content_providers/helpful_thoughts_index_provider.rb
Overview
Provides a list of a Participant“s helpful Thoughts.
Instance Method Summary collapse
Instance Method Details
#data_class_name ⇒ Object
5 6 7 |
# File 'app/models/content_providers/helpful_thoughts_index_provider.rb', line 5 def data_class_name "Thought" end |
#render_current(options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/models/content_providers/helpful_thoughts_index_provider.rb', line 9 def render_current() .view_context.render( template: "think_feel_do_engine/thoughts/index", locals: { title: "Helpful Thoughts", introduction: introduction, thoughts: .participant.thoughts.helpful } ) end |
#show_nav_link? ⇒ Boolean
20 21 22 |
# File 'app/models/content_providers/helpful_thoughts_index_provider.rb', line 20 def show_nav_link? true end |