# File lib/generators/active_record/oauth_provider_templates/oauth2_verifier.rb, line 5 def exchange!(params={}) OauthToken.transaction do token = Oauth2Token.create! :user=>user,:client_application=>client_application, :scope => scope invalidate! token end end