# File lib/autumn/datamapper_hacks.rb, line 287 def models DataMapper::Resource.descendants.select { |cl| not cl.properties(name).empty? or not cl.relationships(name).empty? } #HACK we are assuming that if a model has properties or relationships # defined for a repository, then it must be contextual to that repo end