Sha256: a058060af10a38457183e5f00e66c846e99e5e605c19340b41ed7928b8febd69
Contents?: true
Size: 297 Bytes
Versions: 31
Compression:
Stored size: 297 Bytes
Contents
# frozen_string_literal: true # Policy for user model class UserPolicy < ControllerPolicy attr_reader :user, :objects def initialize(user, objects) @user = user @objects = objects end def clone? false end def destroy? keppler_admin? && !same_user?(@user) end end
Version data entries
31 entries across 30 versions & 1 rubygems