mirror of
https://github.com/System-End/highway.git
synced 2026-04-19 22:05:13 +00:00
9 lines
No EOL
294 B
Ruby
9 lines
No EOL
294 B
Ruby
class UserPrizesController < ApplicationController
|
|
before_action :require_authentication
|
|
|
|
def claim
|
|
user_prize = current_user.user_prizes.find(params[:id])
|
|
user_prize.claim!
|
|
redirect_to prize_box_path, notice: "Prize claimed! Tracking: #{user_prize.tracking_number}"
|
|
end
|
|
end |