lib/authorizable/proxy.rb
# checks the cache if we have calculated this permission before
# @return [Boolean|NilClass]
checks the cache if we have calculated this permission before
checks the cache if we have calculated this permission before
def value_from_cache(permission, *args)
      o = args[0]
      role = get_role_of(o)
      cache.get_for_role(permission, role)
    end
def value_from_cache ( permission , * args ) o = args [ 0 ] role = get_role_of ( o ) cache . get_for_role ( permission , role ) end
checks the cache if we have calculated this permission before
checks the cache if we have calculated this permission before
# object; Event, Discount, etc # don't perform the permission evaluation, if we have already computed it
None
Boolean|NilClass
permission
args