Heartbeat API with device token authentication

This commit is contained in:
leenasn
2015-11-09 16:19:50 +05:30
parent b51d535cfe
commit 7a2e2c15d2
5 changed files with 51 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ class DevicesController < ApplicationController
},
status: :created
else
render json: { error: device.errors.full_messages }, status: :unprocessable_entity
render json: { error: device.errors.full_messages },
status: :unprocessable_entity
end
end