Class: ContentProviders::NewThoughtsFormProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::NewThoughtsFormProvider
- Defined in:
- app/models/content_providers/new_thoughts_form_provider.rb
Overview
Provides multiple forms for a Participant to enter 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
18 19 20 |
# File 'app/models/content_providers/new_thoughts_form_provider.rb', line 18 def data_attributes [:content, :effect] end |
#data_class_name ⇒ Object
14 15 16 |
# File 'app/models/content_providers/new_thoughts_form_provider.rb', line 14 def data_class_name "Thought" end |
#render_current(options) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/models/content_providers/new_thoughts_form_provider.rb', line 4 def render_current() .view_context.render( template: "think_feel_do_engine/thoughts/new_bulk", locals: { thoughts: [.participant.thoughts.build], create_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
22 23 24 |
# File 'app/models/content_providers/new_thoughts_form_provider.rb', line 22 def show_nav_link? false end |