Sha256: 9e9888b4428fb91d9c27edae32dbfeb70cd41ae2a91d881b2420a45570b88300
Contents?: true
Size: 809 Bytes
Versions: 25
Compression:
Stored size: 809 Bytes
Contents
module ContentProviders module Experiences # Allows participants view past positive experiences/events class IndexProvider < BitCore::ContentProvider def render_current(options) options.view_context.render( template: "think_feel_do_engine/experiences/index_provider", locals: { new_link: options.view_context.navigator_location_path( module_id: first_new_provider .try(:bit_core_content_module_id), provider_id: first_new_provider .try(:id), content_position: 1), experiences: options .view_context.current_participant.experiences }) end private def first_new_provider NewProvider.first end end end end
Version data entries
25 entries across 25 versions & 1 rubygems