Class: ContentProviders::CreateActivity
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::CreateActivity
- Defined in:
- app/models/content_providers/create_activity.rb
Overview
Provides a form for a Participant to schedule new Activities that have been fun in the past.
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
15 16 17 18 19 20 21 22 23 |
# File 'app/models/content_providers/create_activity.rb', line 15 def data_attributes [ :activity_type_title, :activity_type_new_title, :predicted_pleasure_intensity, :predicted_accomplishment_intensity, :start_time ] end |
#data_class_name ⇒ Object
25 26 27 |
# File 'app/models/content_providers/create_activity.rb', line 25 def data_class_name "PlannedActivity" end |
#render_current(options) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/models/content_providers/create_activity.rb', line 5 def render_current() .view_context.render( template: "think_feel_do_engine/activities/create_activity", locals: { past_activities: activities(.participant), create_path: .view_context.participant_data_path } ) end |
#show_nav_link? ⇒ Boolean
29 30 31 |
# File 'app/models/content_providers/create_activity.rb', line 29 def show_nav_link? false end |