Add extension URL display
All checks were successful
CI / scan_ruby (push) Successful in 1m3s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 38s

This commit is contained in:
sto
2025-06-13 18:30:47 +02:00
parent 7444a09046
commit d7d90f0c91
2 changed files with 7 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class MessagesController < ApplicationController
@message_params = message_params
@contest = Contest.find_by_token_for(:token, params[:token])
@message = Message.new(text: params[:text], time_seconds: params[:time_seconds],
@message = Message.new(text: params[:text], author: params[:author], time_seconds: params[:time_seconds],
display_time: display_time(params[:time_seconds]), contest: @contest)
if @contest && @message.save
respond_to do |format|