Actually helpful registration errors

pull/247/head
Rick Carlino 2016-05-09 15:01:12 -05:00
parent 6b977380c3
commit bd230ddd80
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
2.2.3
2.3.1

View File

@ -20,6 +20,11 @@ module Api
'schedule_id, sequence_id, id, etc..', 400
end
rescue_from Mongoid::Errors::Validations do |exc|
render json: {error: exc.summary}, status: 422
end
private
def current_device