Class: Tomify::Api::Admin::FeedbackController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/tomify/api/admin/feedback_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



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