This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Api::V1::RaffleController < ApplicationController | |
| include RenderMessagesHelper | |
| include PaginationHelper | |
| include SerializerHelper | |
| include GenerateXlsHelper | |
| before_action :authorize_request, except: [:catalog, :show] | |
| before_action :set_raffle, only: [:show, :update, :destroy, :finish] | |
| def index | |
| raffles = Raffle.order(id: :desc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "https://rubygems.org" | |
| # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" | |
| gem "rails", "~> 8.1.1" | |
| # Use the Puma web server [https://github.com/puma/puma] | |
| gem "puma", ">= 5.0" | |
| gem "faraday", "~> 2.14" | |
| # Windows does not include zoneinfo files, so bundle the tzinfo-data gem | |
| gem "tzinfo-data", platforms: %i[ windows jruby ] |