mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
committed by
GitHub
parent
ba86e81aa0
commit
78049a820c
@@ -20,7 +20,7 @@ class FollowsController < ApplicationController
|
||||
}, status: :created
|
||||
else
|
||||
render json: {
|
||||
error: I18n.t('errors.follows.create', message: follow.errors.full_messages)
|
||||
error: follow.errors.full_messages
|
||||
}, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
@@ -37,7 +37,7 @@ class FollowsController < ApplicationController
|
||||
}, status: :accepted
|
||||
else
|
||||
render json: {
|
||||
error: I18n.t('errors.follow.destroy', message: follow.errors.full_messages)
|
||||
error: follow.errors.full_messages
|
||||
}, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user