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/settings/contacts_controller.rb
2019-09-03 07:54:37 +05:00

19 lines
387 B
Ruby

# frozen_string_literal: true
class Settings::ContactsController < ApplicationController
before_action :skip_policy_scope, only: :index
before_action :set_contact_list
# GET /settings/contacts
def index
authorize %i[settings contact]
@contacts = @contact_list.contacts
end
private
def set_contact_list
@contact_list = current_account&.contact_list
end
end