Module: Studio::LinkConsumption
- Extended by:
- ActiveSupport::Concern
- Included in:
- MagicLinksController, LinksController
- Defined in:
- app/controllers/concerns/studio/link_consumption.rb
Overview
Shared create-or-login building blocks for the magic-link / link consume controllers (MagicLinksController + Studio::LinksController). ‘result` is anything responding to #email and #return_to — the legacy MagicLink::Result OR a Studio::Link — so both token schemes reuse this. Apps that override the link controllers (e.g. turf-monster’s contest landing) include it too.
Relies on the host ApplicationController contract from Studio::ErrorHandling: set_app_session, rescue_and_log, current_user, plus root_path / login_path.