admix/app/controllers/admix/sessions_controller.rb in mix-rails-0.10.4 vs admix/app/controllers/admix/sessions_controller.rb in mix-rails-0.12.1
- old
+ new
@@ -1,3 +1,9 @@
class Admix::SessionsController < Devise::SessionsController
+
layout 'admix/login'
+
+ def after_sign_in_path_for(resource)
+ request.env['omniauth.origin'] || session[:admix_user_return_to] || admix_root_path
+ end
+
end