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
2019-03-24 15:27:06 -04:00
# GET /accounts/:nickname
2019-02-01 16:36:10 -05:00
def show
authorize @account
end
private
def set_account
2019-03-24 15:27:06 -04:00
@account = Account.find_by! nickname: params[:nickname]
2019-02-01 16:36:10 -05:00
end
end