2022-05-23 15:09:22 +02:00
|
|
|
class TargetedUserLinksController < ApplicationController
|
|
|
|
before_action :set_targeted_user_link, only: [:show]
|
|
|
|
def show
|
|
|
|
if @targeted_user_link.invalid_signed_in_user?(current_user)
|
|
|
|
render
|
|
|
|
else
|
|
|
|
redirect_to @targeted_user_link.redirect_url(Rails.application.routes.url_helpers)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_targeted_user_link
|
2022-06-13 16:00:41 +02:00
|
|
|
@targeted_user_link = TargetedUserLink.find(params[:id])
|
2022-05-23 15:09:22 +02:00
|
|
|
end
|
|
|
|
end
|