Sha256: 911cb2f0b97daf04c032910b82fada3ebd3fc2fb0415757ebcdb1f616c618e48

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

module Europeana
  module FeedbackButton
    # Feedback form display methods
    module FeedbackableView
      extend ActiveSupport::Concern

      def feedback
        return nil unless Europeana::FeedbackButton.enabled?

        {
          form_action: europeana_feedback_button.feedback_path,
          maxlength: Europeana::FeedbackButton::Feedback::MAX_LENGTH,
          minwords: Europeana::FeedbackButton::Feedback::MIN_WORDS,
          privacy_policy_url: Europeana::FeedbackButton.privacy_policy_url
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
europeana-feedback-button-0.0.7 app/views/concerns/europeana/feedback_button/feedbackable_view.rb
europeana-feedback-button-0.0.6 app/views/concerns/europeana/feedback_button/feedbackable_view.rb