class Conjur::Policy::AnnotationSubstitutionResolver

Public Instance Methods

resolve_field(record, visited) click to toggle source
# File lib/conjur/policy/resolver.rb, line 130
def resolve_field record, visited
  if record.respond_to?(:annotations) && (annotations = record.annotations)
    annotations.each do |k,v|
      substitute! v
    end
  end

  traverse record.referenced_records, visited, method(:resolve_field), method(:on_resolve_policy)
end