Sha256: bb579c6b2a421095345baad14cfb59ec84a827a2c1e358b486ccdbbc7a6e61a9
Contents?: true
Size: 272 Bytes
Versions: 1
Compression:
Stored size: 272 Bytes
Contents
module Likeable module OhmAdapter def self.find_one lambda { |klass, id| klass[id] } end def self.find_many lambda { |klass, ids| Array(ids).collect do |id| klass[id] end.compact } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
likeable-0.1.2 | lib/likeable/adapters/ohm_adapter.rb |