Class: Hootenanny::PublishNotificationsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Hootenanny::PublishNotificationsController
- Includes:
- Parameters
- Defined in:
- app/controllers/hootenanny/notifications_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/controllers/hootenanny/notifications_controller.rb', line 8 def create if Hootenanny::Hub.notify_of_publication(publish_notification_request) render :nothing => true, :status => :no_content end rescue Hootenanny::Error => error render json: error, status: :bad_request end |