Sha256: 8ee2ce7aa594e943ca05d737c1b8bbc1b6f2c39a01d74cdb44ba0665049aca79

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

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

      def feedback
        return nil unless feedback_enabled?
        {
            form_action: europeana_feedback_button.feedback_path,
            maxlength: 400,
            minwords: 5
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
europeana-feedback-button-0.0.4 app/views/concerns/europeana/feedback_button/feedbackable_view.rb
europeana-feedback-button-0.0.3 app/views/concerns/europeana/feedback_button/feedbackable_view.rb