Class: TentD::API::Followers::GetMany
- Inherits:
-
Middleware
- Object
- Middleware
- TentD::API::Followers::GetMany
- Defined in:
- lib/tentd/api/followers.rb
Instance Method Summary collapse
Methods inherited from Middleware
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
131 132 133 134 135 136 137 138 139 |
# File 'lib/tentd/api/followers.rb', line 131 def action(env) if env. followers = Model::Follower.fetch_all(env.params) else followers = Model::Follower.(env.params, env.current_auth) end env.response = followers if followers env end |