mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
8 lines
303 B
Ruby
8 lines
303 B
Ruby
# Profile: create (or replace) the secret calendar feed link.
|
|
class CalendarTokensController < ApplicationController
|
|
def create
|
|
current_user.regenerate_calendar_token
|
|
redirect_to edit_profile_path(anchor: "calendar"), notice: "Calendar link ready. Any earlier link no longer works."
|
|
end
|
|
end
|