Permalink
Browse files

return to return_to after login

  • Loading branch information...
1 parent 3aa8979 commit a82bac249e3eca5d72a3f9320b0cb63ed532ed5b @mooktakim committed Nov 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/omnisocial/auth_controller.rb
@@ -36,7 +36,7 @@ def callback
account.save
end
- redirect_back_or_default(root_path)
+ redirect_back_or_default(session['return_to'] || root_path)
end
def failure

0 comments on commit a82bac2

Please sign in to comment.