app/views/concerns/europeana/feedback_button/feedbackable_view.rb in europeana-feedback-button-0.0.5 vs app/views/concerns/europeana/feedback_button/feedbackable_view.rb in europeana-feedback-button-0.0.6
- old
+ new
@@ -1,20 +1,20 @@
# 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?
+ return nil unless Europeana::FeedbackButton.enabled?
+
{
form_action: europeana_feedback_button.feedback_path,
- maxlength: 400,
- minwords: 5
+ maxlength: Europeana::FeedbackButton::Feedback::MAX_LENGTH,
+ minwords: Europeana::FeedbackButton::Feedback::MIN_WORDS,
+ privacy_policy_url: Europeana::FeedbackButton.privacy_policy_url
}
end
end
end
end