Class: ContentProviders::NewCurrentEmotionProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::NewCurrentEmotionProvider
- Defined in:
- app/models/content_providers/new_current_emotion_provider.rb
Overview
Participant rates their current mood
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
22 23 24 |
# File 'app/models/content_providers/new_current_emotion_provider.rb', line 22 def data_attributes [:emotion_id, :name, :participant_id, :rating, :is_positive] end |
#data_class_name ⇒ Object
18 19 20 |
# File 'app/models/content_providers/new_current_emotion_provider.rb', line 18 def data_class_name "EmotionalRating" end |
#render_current(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/models/content_providers/new_current_emotion_provider.rb', line 4 def render_current() .view_context.render( template: "think_feel_do_engine/emotions/new_current", locals: { emotional_rating: .view_context .current_participant . .build, create_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
26 27 28 |
# File 'app/models/content_providers/new_current_emotion_provider.rb', line 26 def show_nav_link? false end |