Module: Europeana::FeedbackButton
- Defined in:
- lib/europeana/feedback_button.rb,
lib/europeana/feedback_button/engine.rb,
lib/europeana/feedback_button/version.rb,
app/models/europeana/feedback_button/feedback.rb,
app/mailers/europeana/feedback_button/feedback_mailer.rb,
lib/generators/europeana/feedback_button/install_generator.rb,
app/controllers/europeana/feedback_button/feedback_controller.rb,
app/validators/europeana/feedback_button/word_count_validator.rb,
app/views/concerns/europeana/feedback_button/feedbackable_view.rb,
app/controllers/europeana/feedback_button/application_controller.rb
Defined Under Namespace
Modules: FeedbackableView Classes: ApplicationController, ApplicationError, Engine, Feedback, FeedbackController, FeedbackMailer, InstallGenerator, NoRecipientError, WordCountValidator
Constant Summary collapse
- PRIVACY_POLICY_URL =
'https://www.europeana.eu/portal/rights/privacy.html'
- VERSION =
'0.0.7'
Class Attribute Summary collapse
-
.mail_to ⇒ String
Email recipient of feedback submissions.
-
.privacy_policy_url ⇒ String
URL to the privacy policy users must accept.
Class Method Summary collapse
-
.enabled? ⇒ Boolean
Is feedback enabled?.
Class Attribute Details
.mail_to ⇒ String
Returns Email recipient of feedback submissions.
11 12 13 |
# File 'lib/europeana/feedback_button.rb', line 11 def mail_to @mail_to end |
.privacy_policy_url ⇒ String
Returns URL to the privacy policy users must accept.
14 15 16 |
# File 'lib/europeana/feedback_button.rb', line 14 def privacy_policy_url @privacy_policy_url end |
Class Method Details
.enabled? ⇒ Boolean
Is feedback enabled?
Feedback will be enabled if mail_to
is set.
21 22 23 |
# File 'lib/europeana/feedback_button.rb', line 21 def enabled? mail_to.present? end |