Method: Mdm::Enrollment::ProfilesController#update
- Defined in:
- app/controllers/mdm/management/profiles_controller.rb
#update ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/mdm/management/profiles_controller.rb', line 23 def update @profile = Mdm::Profile.find(params[:id]) service = Mdm::Enrollment::AssignProfile.new service.profile = @profile service.devices = Mdm::Device.where(serial_number: params.require(:devices)) service.start render json: service.result end |