Sha256: 2d9db5de09e9bb5b4abc60c146a5aa1c3ac61c5a34a7939c84d2d79215334e8d

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

module ContentProviders
  module Experiences
    # Allows participants to record a positive experiences/events
    class NewProvider < BitCore::ContentProvider
      def data_attributes
        [:challenging_amplification, :description]
      end

      def data_class_name
        "Experience"
      end

      def render_current(options)
        options.view_context.render(
          template: "think_feel_do_engine/experiences/new_provider",
          locals: {
            create_path: options.view_context.participant_data_path,
            participant: options.view_context.current_participant
          })
      end

      def show_nav_link?
        false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
think_feel_do_engine-3.11.3 app/models/content_providers/experiences/new_provider.rb