Class: ContentProviders::FunActivityChecklist

Inherits:
BitCore::ContentProvider
  • Object
show all
Defined in:
app/models/content_providers/fun_activity_checklist.rb

Overview

Provides a form for a Participant to schedule new Activities that have been fun in the past.

Instance Method Summary collapse

Instance Method Details

#data_attributesObject



16
17
18
19
20
21
22
23
24
# File 'app/models/content_providers/fun_activity_checklist.rb', line 16

def data_attributes
  [
    :activity_type_title,
    :activity_type_new_title,
    :predicted_pleasure_intensity,
    :predicted_accomplishment_intensity,
    :start_time
  ]
end

#data_class_nameObject



26
27
28
# File 'app/models/content_providers/fun_activity_checklist.rb', line 26

def data_class_name
  "PlannedActivity"
end

#render_current(options) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'app/models/content_providers/fun_activity_checklist.rb', line 6

def render_current(options)
  options.view_context.render(
    template: "think_feel_do_engine/activities/fun_activity_checklist",
    locals: {
      past_activities: activities(options.participant),
      create_path: options.view_context.participant_data_path
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'app/models/content_providers/fun_activity_checklist.rb', line 30

def show_nav_link?
  false
end