Sha256: 8acba02f7dd44c7ee985d6b7eafa17f79fd4bf1dd3edcca2ed49927dae19f991

Contents?: true

Size: 317 Bytes

Versions: 17

Compression:

Stored size: 317 Bytes

Contents

module Kernel
  # Delegates to DataMapper::repository.
  # Will not overwrite if a method of the same name is pre-defined.
  def repository(*args)
    if block_given?
      DataMapper.repository(*args) { |*block_args| yield(*block_args) }
    else
      DataMapper.repository(*args)
    end
  end
end # module Kernel

Version data entries

17 entries across 17 versions & 5 rubygems

Version Path
datamapper-dm-core-0.9.11 lib/dm-core/support/kernel.rb
rpbertp13-dm-core-0.9.11.1 lib/dm-core/support/kernel.rb
rpbertp13-dm-core-0.9.11.2 lib/dm-core/support/kernel.rb
sam-dm-core-0.9.10 lib/dm-core/support/kernel.rb
sam-dm-core-0.9.11 lib/dm-core/support/kernel.rb
sam-dm-core-0.9.7 lib/dm-core/support/kernel.rb
sam-dm-core-0.9.8 lib/dm-core/support/kernel.rb
sam-dm-core-0.9.9 lib/dm-core/support/kernel.rb
dm-core-0.9.10 lib/dm-core/support/kernel.rb
dm-core-0.9.11 lib/dm-core/support/kernel.rb
dm-core-0.9.7 lib/dm-core/support/kernel.rb
dm-core-0.9.6 lib/dm-core/support/kernel.rb
dm-core-0.9.9 lib/dm-core/support/kernel.rb
dm-core-0.9.8 lib/dm-core/support/kernel.rb
mack-data_mapper-0.8.2 lib/gems/dm-core-0.9.7/lib/dm-core/support/kernel.rb
mack-data_mapper-0.8.3.1 lib/gems/dm-core-0.9.9/lib/dm-core/support/kernel.rb
mack-data_mapper-0.8.3 lib/gems/dm-core-0.9.9/lib/dm-core/support/kernel.rb