Class: Mdm::Enrollment::EnrollmentController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mdm/enrollment/enrollment_controller.rb

Instance Method Summary collapse

Instance Method Details

#checkinObject



14
15
16
17
18
19
20
# File 'app/controllers/mdm/enrollment/enrollment_controller.rb', line 14

def checkin
  if params[:MessageType] == 'TokenUpdate'
    device_token_update
  end

  render nothing: true
end

#enrollObject



7
8
9
10
11
12
# File 'app/controllers/mdm/enrollment/enrollment_controller.rb', line 7

def enroll
  send_file Configuration.configuration_profile, {
              disposition: 'attachment',
              filename: 'Enroll.mobileconfig'
            }
end