Skip to content

Instantly share code, notes, and snippets.

View Miranda0304's full-sized avatar

Miranda0304

View GitHub Profile
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)
@Miranda0304
Miranda0304 / Gemfile
Last active December 8, 2025 23:05
easy_broker challenge
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 ]