Sha256: 9beaff64613911cc8725ef27ca508c46982cbe4eb534fd4ce8f91f8b88574864
Contents?: true
Size: 241 Bytes
Versions: 14
Compression:
Stored size: 241 Bytes
Contents
class UserPolicy attr_reader :user, :record def initialize(user, record) @user = user @record = record end def index? @user.admin? end def update? @user.admin? end def destroy? @user.admin? end end
Version data entries
14 entries across 14 versions & 1 rubygems