Class: ContentProviders::AccomplishedActivityIndexProvider

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

Overview

Provides a view of completed Activities during the Participant“s most recent AwakePeriod.

Instance Method Summary collapse

Instance Method Details

#render_current(options) ⇒ Object



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

def render_current(options)
  options.view_context.render(
    template: "think_feel_do_engine/activities/accomplished_index",
    locals: {
      activities: options
        .participant
        .recent_accomplished_activities
        .order(start_time: :asc)
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/content_providers/accomplished_activity_index_provider.rb', line 18

def show_nav_link?
  true
end