Method: Authorize::Permission#mask
- Defined in:
- lib/authorize/permission.rb
#mask(reload = false) ⇒ Object
88 89 90 91 92 |
# File 'lib/authorize/permission.rb', line 88 def mask(reload = false) cached = @attributes_cache['mask'] # undocumented hash of cache nicely invalidated by write_attribute return cached if cached && !reload @attributes_cache['mask'] = Mask.new(read_attribute('mask')) # Ensure we always return a Mask instance end |