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/policies/staff/passport_policy.rb
2018-12-13 07:22:06 +05:00

27 lines
453 B
Ruby

# frozen_string_literal: true
class Staff::PassportPolicy < ApplicationPolicy
def show?
true
end
def create?
true
end
def permitted_attributes_for_create
[
:images,
passport_maps_attributes: %i[
surname given_name patronymic sex date_of_birth place_of_birth series
number issued_by unit_code date_of_issue
],
]
end
class Scope < Scope
def resolve
scope.all
end
end
end