# File lib/dm-core/resource.rb, line 634 def collection return @_collection if (@_collection && @_collection.query.conditions.matches?(self)) || new? || readonly? collection_for_self end