1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/controllers/telegram_bots_controller.rb

23 lines
416 B
Ruby

# frozen_string_literal: true
class TelegramBotsController < ApplicationController
before_action :set_telegram_bot, except: :index
# GET /telegram_bots
def index
authorize :telegram_bot
@telegram_bots = policy_scope(TelegramBot)
end
# GET /telegram_bots/:id
def show
authorize @telegram_bot
end
private
def set_telegram_bot
@telegram_bot = TelegramBot.find params[:id]
end
end