FarmBot/Farmbot-Web-App

View on GitHub
app/controllers/api/ai_feedbacks_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Api
  class AiFeedbacksController < Api::AbstractController
    def create
      render json: AiFeedback.create!(update_params)
    end

    private

    def update_params
      raw_json.merge(device_id: current_device.id)
    end
  end
end