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/accounts_controller.rb

17 lines
276 B
Ruby
Raw Normal View History

2019-02-01 16:36:10 -05:00
# frozen_string_literal: true
class AccountsController < ApplicationController
before_action :set_account
# GET /accounts/:username
def show
authorize @account
end
private
def set_account
@account = Account.find_by! username: params[:username]
end
end