app/models/user.rb
# Upload SSH key to github, but not if disable_ssh_github_upload is true.
# User must also be authorized for Github API access.
Upload SSH key to github, but not if disable_ssh_github_upload is true.
User must also be authorized for Github API access.
Upload SSH key to github but not if disable_ssh_github_upload is true . User must also be authorized for Github API access .
def upload_ssh_key_to_github
      if !ssh_key_uploaded_to_github? && !self.class.disable_ssh_github_upload && authorized_for_github?
        github.key.create "Strano", Strano.public_ssh_key
        self.toggle! :ssh_key_uploaded_to_github
      end
    rescue
    end
def upload_ssh_key_to_github if ! ssh_key_uploaded_to_github? && ! self . class . disable_ssh_github_upload && authorized_for_github? github . key . create "Strano" , Strano . public_ssh_key self . toggle! :ssh_key_uploaded_to_github end rescue end
Upload SSH key to github, but not if disable_ssh_github_upload is true.
Upload SSH key to github but not if disable_ssh_github_upload is true .
# do nothing