Use resourceful routes for terms view/accept/decline

This commit is contained in:
Anton Khorev 2025-01-04 14:25:47 +03:00
parent 44843c1dd7
commit 606b5c1b6a
15 changed files with 204 additions and 171 deletions

View file

@ -48,7 +48,7 @@ module SessionMethods
# - If they were referred to the login, send them back there.
# - Otherwise, send them to the home page.
if !user.terms_seen
redirect_to :controller => :users, :action => :terms, :referer => target
redirect_to account_terms_path(:referer => target)
elsif user.blocked_on_view
redirect_to user.blocked_on_view, :referer => target
else