Class: Admin::Atreides::GithubController
- Inherits:
-
Atreides::AdminController
- Object
- Atreides::AdminController
- Admin::Atreides::GithubController
- Defined in:
- app/controllers/admin/atreides/github_controller.rb
Instance Method Summary collapse
Instance Method Details
#callback ⇒ Object
28 29 30 31 32 |
# File 'app/controllers/admin/atreides/github_controller.rb', line 28 def callback render :text => Atreides::Github.get_token(params[:code]).inspect rescue OAuth2::Error => e render :text => e.response.inspect end |
#connect ⇒ Object
24 25 26 |
# File 'app/controllers/admin/atreides/github_controller.rb', line 24 def connect redirect_to(Atreides::Github.) end |