Class: Opro::Oauth::TestsController
- Inherits:
-
OproController
- Object
- ApplicationController
- OproController
- Opro::Oauth::TestsController
- Defined in:
- app/controllers/opro/oauth/tests_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
14 15 16 17 |
# File 'app/controllers/opro/oauth/tests_controller.rb', line 14 def create result = oauth_result(params) render_result(result) end |
#destroy ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'app/controllers/opro/oauth/tests_controller.rb', line 19 def destroy result = if valid_oauth? {status: 200, message: 'OH NO!!! OAuth is disabled on this action; this is bad', params: params} else {status: :unauthorized, message: "OAuth is disabled on this action; this is the correct result!", params: params} end render_result(result) end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/opro/oauth/tests_controller.rb', line 5 def index end |
#show ⇒ Object
9 10 11 12 |
# File 'app/controllers/opro/oauth/tests_controller.rb', line 9 def show result = oauth_result(params) render_result(result) end |