Sha256: 29535804f345cc7fb3a5c1e879fea1d6d267e12ddcd045b97c3d98d483d23079
Contents?: true
Size: 429 Bytes
Versions: 10
Compression:
Stored size: 429 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Plugins module Associations class OneAsProxy < OneProxy protected def criteria {type_key_name => proxy_owner.class.name, id_key_name => proxy_owner.id} end private def type_key_name "#{options[:as]}_type" end def id_key_name "#{options[:as]}_id" end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems