module ActiveFedora::Attributes
def [](key)
def [](key) if assoc = self.association(key.to_sym) # This is for id attributes stored in the rdf graph. assoc.reader elsif self.class.properties.key?(key.to_s) # Use the generated method so that single value assetions are single self.send(key) else # The attribute is a delegate to a datastream array_reader(key) end end