Created
September 24, 2015 16:25
-
-
Save fmquaglia/d123d667cafed291cc24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CredentialsController < ApplicationController | |
def authorize_credentials | |
redirect_to new_polymorphic_path([current_user, credential_type.new], request.query_parameters) | |
end | |
private | |
def credential_type | |
Credentials::SalesforceInstanceCredential | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment