Class: TentD::API::UserLookup

Inherits:
Middleware show all
Defined in:
lib/tentd/api/user_lookup.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



4
5
6
7
# File 'lib/tentd/api/user_lookup.rb', line 4

def action(env)
  Model::User.current ||= Model::User.first_or_create
  env
end