Class: TentD::API::Apps::Destroy
- Inherits:
-
Middleware
- Object
- Middleware
- TentD::API::Apps::Destroy
- Defined in:
- lib/tentd/api/apps.rb
Instance Method Summary collapse
Methods inherited from Middleware
Methods included from TentD::API::Authorizable
#authorize_env!, #authorize_env?
Constructor Details
This class inherits a constructor from TentD::API::Middleware
Instance Method Details
#action(env) ⇒ Object
134 135 136 137 138 139 |
# File 'lib/tentd/api/apps.rb', line 134 def action(env) if (app = Model::App.get(env.params.app_id)) && app.destroy env.response = '' end env end |