redirect to user page after sign in

This commit is contained in:
Ilion Beyst 2015-09-11 17:22:36 +02:00
parent f9b6f17456
commit 1472884ccb

View file

@ -23,4 +23,8 @@ class ApplicationController < ActionController::Base
current_client.try { |c| ClientAbility.new(c) } || current_client.try { |c| ClientAbility.new(c) } ||
UserAbility.new(current_user) UserAbility.new(current_user)
end end
def after_sign_in_path_for(resource)
current_user
end
end end