Add digest e-mails
This commit is contained in:
parent
f5457cc3d2
commit
6b81d10030
25 changed files with 117 additions and 32 deletions
|
@ -79,6 +79,7 @@ class ApiController < ApplicationController
|
|||
|
||||
def require_user!
|
||||
current_resource_owner
|
||||
set_user_activity
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render json: { error: 'This method requires an authenticated user' }, status: 422
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue