Class: Europeana::FeedbackButton::FeedbackController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Europeana::FeedbackButton::FeedbackController
- Includes:
- FeedbackHelper
- Defined in:
- app/controllers/europeana/feedback_button/feedback_controller.rb
Instance Method Summary collapse
Methods included from FeedbackHelper
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/europeana/feedback_button/feedback_controller.rb', line 7 def create if feedback_enabled? && FeedbackMailer.post(mailer_post_args).deliver_later respond_to do |format| format.json { render json: { success: true } } end else respond_to do |format| format.json { render json: { success: false }, status: 500 } end end end |