Sha256: 960d277e24e1fd8a790b9227f6306cb3a82de9ba590a8118601903e74afe7dd4
Contents?: true
Size: 447 Bytes
Versions: 6
Compression:
Stored size: 447 Bytes
Contents
# encoding: UTF-8 module MarkMapper 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
6 entries across 6 versions & 1 rubygems