Class: ContentProviders::ActivityIndexProvider
- Inherits:
-
BitCore::ContentProvider
- Object
- BitCore::ContentProvider
- ContentProviders::ActivityIndexProvider
- Defined in:
- app/models/content_providers/activity_index_provider.rb
Overview
Provides a view of Activities that occured during a Participant’s most recent AwakePeriod.
Instance Method Summary collapse
Instance Method Details
#data_class_name ⇒ Object
5 6 7 |
# File 'app/models/content_providers/activity_index_provider.rb', line 5 def data_class_name "Activity" end |
#render_current(options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/models/content_providers/activity_index_provider.rb', line 9 def render_current() .view_context.render( template: "think_feel_do_engine/activities/index", locals: { activities: .participant .recent_activities .order("start_time ASC") } ) end |
#show_nav_link? ⇒ Boolean
21 22 23 |
# File 'app/models/content_providers/activity_index_provider.rb', line 21 def show_nav_link? true end |