Class: Tomify::Api::Admin::FeedbackController
- Inherits:
-
Object
- Object
- Tomify::Api::Admin::FeedbackController
- Defined in:
- app/controllers/tomify/api/admin/feedback_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
2 3 4 5 6 |
# File 'app/controllers/tomify/api/admin/feedback_controller.rb', line 2 def update find_record update_record render json: { type: :success, data: data, message: "#{model_name} #{record.resolved ? "Resolved" : "Unresolved"}" } end |