Class: Notifiable::NotificationStatusesController
- Inherits:
-
Object
- Object
- Notifiable::NotificationStatusesController
- Defined in:
- app/controllers/notifiable/notification_statuses_controller.rb
Instance Method Summary collapse
Instance Method Details
#opened ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/notifiable/notification_statuses_controller.rb', line 5 def opened if @notification_status.opened! head :status => :ok else render :json => { :errors => @notification_status.errors. }, :status => :unprocessable_entity end end |