Sha256: 351d33ef456399ea7b7a6b6afd4d0a25e29faca8cc62a15600bf293828570566

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

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

      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

1 entries across 1 versions & 1 rubygems

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