# File lib/ohm.rb, line 932 def self.collection(name, model, reference = to_reference) define_method name do model = Utils.const(self.class, model) model.find("#{reference}_id""#{reference}_id" => id) end end