Class: ContentProviders::NewPastFeelProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::NewPastFeelProvider
- Defined in:
- app/models/content_providers/new_past_feel_provider.rb
Overview
Allows user to submit a mood from the past 24 hours.
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
19 20 21 |
# File 'app/models/content_providers/new_past_feel_provider.rb', line 19 def data_attributes [:rating] end |
#data_class_name ⇒ Object
15 16 17 |
# File 'app/models/content_providers/new_past_feel_provider.rb', line 15 def data_class_name "Mood" end |
#render_current(options) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/models/content_providers/new_past_feel_provider.rb', line 5 def render_current() .view_context.render( template: "moods/new_past_mood", locals: { mood: .view_context.current_participant.moods.build, create_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
23 24 25 |
# File 'app/models/content_providers/new_past_feel_provider.rb', line 23 def show_nav_link? false end |