Sha256: 797f10f258c5f2c36f262594720c9729fd35eea15a70e36bbbe0b88f6ff51839
Contents?: true
Size: 374 Bytes
Versions: 21
Compression:
Stored size: 374 Bytes
Contents
module CanTango class PermissionEngine < Engine module Selector class Users < Base attr_reader :user, :user_key def initialize subject @user = subject.user @user_key = user.send(subject.user_key_field) end def relevant? permission permission == user_key end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems