fix redirect error after sign_in

This commit is contained in:
Stella Rouzi 2014-07-19 08:10:03 +03:00
parent 940f76bf13
commit 9998e00ae3

View file

@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base
end end
def after_sign_in_path_for(resource) def after_sign_in_path_for(resource)
if can? :view, Conference && if (can? :view, Conference) &&
(!session[:return_to] || (!session[:return_to] ||
session[:return_to] && session[:return_to] &&
session[:return_to] == root_path) session[:return_to] == root_path)