Skip to content

Instantly share code, notes, and snippets.

@fmquaglia
Created September 24, 2015 16:25
Show Gist options
  • Save fmquaglia/d123d667cafed291cc24 to your computer and use it in GitHub Desktop.
Save fmquaglia/d123d667cafed291cc24 to your computer and use it in GitHub Desktop.
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