Sha256: d8623538b80f189f36284a941ade1b0e9181c92608cddde6c7facf831ca86510
Contents?: true
Size: 388 Bytes
Versions: 21
Compression:
Stored size: 388 Bytes
Contents
module CanTango class PermissionEngine < Engine module Selector class AccountTypes < Base attr_reader :account_type def initialize subject @account_type = subject.account.class.to_s.underscore end protected def relevant? account_type self.account_type == account_type end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems