Class: TentD::API::Followings::AuthorizeWrite

Inherits:
Middleware
  • Object
show all
Defined in:
lib/tentd/api/followings.rb

Instance Method Summary collapse

Methods inherited from Middleware

#call, #initialize

Methods included from Authorizable

#authorize_env!, #authorize_env?

Constructor Details

This class inherits a constructor from TentD::API::Middleware

Instance Method Details

#action(env) ⇒ Object



23
24
25
26
# File 'lib/tentd/api/followings.rb', line 23

def action(env)
  authorize_env!(env, :write_followings)
  env
end