Class: ContentProviders::ActivityIndexProvider

Inherits:
BitCore::ContentProvider
  • Object
show all
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_nameObject



6
7
8
# File 'app/models/content_providers/activity_index_provider.rb', line 6

def data_class_name
  "Activity"
end

#render_current(options) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'app/models/content_providers/activity_index_provider.rb', line 10

def render_current(options)
  options.view_context.render(
    template: "think_feel_do_engine/activities/index",
    locals: {
      activities: options
        .participant
        .recent_activities
        .order("start_time ASC")
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/content_providers/activity_index_provider.rb', line 22

def show_nav_link?
  true
end