Sha256: ff20a4565492565f9e23fcde8da6c798e74cdc9f95a5a22f37ef3091f126f766
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require 'ripple/associations/proxy' require 'ripple/associations/one' require 'ripple/associations/linked' module Ripple module Associations class OneLinkedProxy < Proxy include One include Linked protected def find_target return nil if links.blank? robjs = robjects return nil if robjs.blank? klass.send(:instantiate, robjs.first) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seomoz-ripple-1.0.0.pre | lib/ripple/associations/one_linked_proxy.rb |