Fix stub authentications#create method

As per comment at
http://railscasts.com/episodes/235-omniauth-part-1?view=comments#comment_153390
This commit is contained in:
Miles Gould
2013-04-08 17:03:52 +01:00
parent 8647cd5315
commit b3154b8592

View File

@@ -40,7 +40,8 @@ class AuthenticationsController < ApplicationController
# POST /authentications
# POST /authentications.json
def create
render :text => request.env["omniauth.auth."].to_yaml
auth = request.env['omniauth.auth']
render :text => auth.to_yaml
end
# PUT /authentications/1