pay_subject
daiao 5 years ago
parent cc8b78beef
commit 6a0fce4548

@ -20,7 +20,7 @@ module ControllerRescueHandler
render_error(ex.record.errors.full_messages.join(',')) render_error(ex.record.errors.full_messages.join(','))
end end
rescue_from RuntimeError do |ex| rescue_from RuntimeError do |ex|
render_error(ex.model.errors.full_messages.join(',')) render_error(ex.full_messages.join(','))
end end
end end
end end
Loading…
Cancel
Save