Sha256: 0317595718247f1acdb18c04dca925fbd529ff542449c2787022fb25d4f5eea1

Contents?: true

Size: 790 Bytes

Versions: 25

Compression:

Stored size: 790 Bytes

Contents

module ContentProviders
  module Experiences
    # Allows participants to record a positive experiences/events
    class NewProvider < BitCore::ContentProvider
      def data_attributes
        [
          :body_feelings,
          :challenging_amplification,
          :description,
          :emotions,
          :thoughts
        ]
      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

25 entries across 25 versions & 1 rubygems

Version Path
think_feel_do_engine-3.15.2 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.15.1 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.15.0 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.9 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.8 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.7 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.6 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.5 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.4 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.3 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.2 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.1 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.14.0 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.13.1 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.13.0 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.12.9 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.12.8 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.12.7 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.12.6 app/models/content_providers/experiences/new_provider.rb
think_feel_do_engine-3.12.5 app/models/content_providers/experiences/new_provider.rb