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

22 lines
427 B
Ruby

# frozen_string_literal: true
class TelegramChatsController < ApplicationController
before_action :set_telegram_chat, except: :index
# GET /telegram_chats
def index
authorize :telegram_chat
@telegram_chats = policy_scope(TelegramChat)
end
# GET /telegram_chats/:id
def show
authorize @telegram_chat
end
private
def set_telegram_chat
@telegram_chat = TelegramChat.find params[:id]
end
end