Class: ContentProviders::CurrentModules::IndexProvider

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

Overview

Provides a set of links to other ContentProviders.

Instance Method Summary collapse

Instance Method Details

#render_current(options) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/models/content_providers/current_modules/index_provider.rb', line 5

def render_current(options)
  participant = options.participant
  context = options.view_context

  context.render(
    template: "think_feel_do_engine/current_modules/index",
    locals: {
      content_modules: content_modules(options),
      current_practice_modules: current_practice_modules(options),
      past_practice_modules: past_practice_modules(options),
      membership: context
        .view_membership(participant, participant.active_group)
    })
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/models/content_providers/current_modules/index_provider.rb', line 20

def show_nav_link?
  false
end