fix redirect url if user is signed in

This commit is contained in:
Lee Lawlor 2015-02-13 11:24:51 -05:00
parent c0bc92b7e2
commit c5b6e16608

View File

@ -49,7 +49,9 @@ class ApplicationController < ActionController::Base
if resource.is_a?(AdminUser) if resource.is_a?(AdminUser)
admin_dashboard_path admin_dashboard_path
else else
channels_path # make sure https is specified in the redirect url if we're in the production environment
url = @ssl ? "#{domain}channels" : "#{domain}channels"
return url
end end
end end