Sha256: 64fba9168636d411a489db3a871eeb0fb2b2a7b901e96690915426b6302f17d7
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
module DataMapper module Ambition module Model def self.included(base) base.send(:alias_method, :find_all, :select) base.send(:alias_method, :find, :detect) end # TODO: document this # @api public def select(&block) all.select(&block) end # TODO: document this # @api public def detect(&block) all.detect(&block) end # TODO: document this # @api public def reject(&block) all.reject(&block) end end # module Model end # module Ambition end # module DataMapper
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dm-ambition-1.2.0 | lib/dm-ambition/model.rb |
dm-ambition-1.1.0 | lib/dm-ambition/model.rb |
dm-ambition-1.1.0.rc3 | lib/dm-ambition/model.rb |
dm-ambition-1.1.0.rc1 | lib/dm-ambition/model.rb |