Module: Likeable::OhmAdapter
- Defined in:
- lib/likeable/adapters/ohm_adapter.rb
Class Method Summary collapse
Class Method Details
.find_many ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/likeable/adapters/ohm_adapter.rb', line 9 def self.find_many lambda { |klass, ids| Array(ids).collect do |id| klass[id] end.compact } end |
.find_one ⇒ Object
3 4 5 6 7 |
# File 'lib/likeable/adapters/ohm_adapter.rb', line 3 def self.find_one lambda { |klass, id| klass[id] } end |