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_bots_controller.rb

23 lines
416 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class TelegramBotsController < ApplicationController
2018-12-06 20:34:57 -05:00
before_action :set_telegram_bot, except: :index
# GET /telegram_bots
def index
authorize :telegram_bot
@telegram_bots = policy_scope(TelegramBot)
end
2018-12-06 20:34:57 -05:00
# GET /telegram_bots/:id
def show
authorize @telegram_bot
end
private
def set_telegram_bot
@telegram_bot = TelegramBot.find params[:id]
end
end