lib/trust/authorization.rb
# raised if attempting to do resource related operations and resource is not passed on to the Authorization object
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
def authorize!
      if perm = permissions
        resource.params_handler = perm
      else
        access_denied!(nil, action, object || klass)
      end
    end
def authorize! if perm = permissions resource . params_handler = perm else access_denied! ( nil , action , object || klass ) end end
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
raised if attempting to do resource related operations and resource is not passed on to the Authorization object