|
|
|
@ -24,7 +24,7 @@ module ControllerRescueHandler
|
|
|
|
|
rescue_from ActiveRecord::RecordInvalid do |ex|
|
|
|
|
|
render_error(ex.record.errors.full_messages.join(','))
|
|
|
|
|
end
|
|
|
|
|
rescue_from StandardError do |ex|
|
|
|
|
|
rescue_from RuntimeError do |ex|
|
|
|
|
|
render_error(ex.message)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|