# File lib/dm-core/model.rb, line 107 def repository(name = nil) # # There has been a couple of different strategies here, but me (zond) and dkubb are at least # united in the concept of explicitness over implicitness. That is - the explicit wish of the # caller (+name+) should be given more priority than the implicit wish of the caller (Repository.context.last). # if block_given? DataMapper.repository(name || repository_name) { |*block_args| yield(*block_args) } else DataMapper.repository(name || repository_name) end end