Module: ThinkFeelDoEngine::Coach::MessagesHelper

Defined in:
app/helpers/think_feel_do_engine/coach/messages_helper.rb

Overview

Provides helpers for coach message composition.

Instance Method Summary collapse

Instance Method Details

Returns grouped options for selecting a section of the site.



7
8
9
10
11
12
13
14
15
16
17
# File 'app/helpers/think_feel_do_engine/coach/messages_helper.rb', line 7

def options_for_site_link_select
  tasks = @group.tasks
  options = tasks.map do |task|
    content_module = BitCore::ContentModule
                     .find(task.bit_core_content_module_id)
    title = content_module.title
    [title, navigator_location_path(module_id: content_module.id)]
  end

  insert_intro_slideshow_anchor(options)
end