class NoBrainer::Document::Association::HasOne
Public Instance Methods
read()
click to toggle source
# File lib/no_brainer/document/association/has_one.rb, line 12 def read targets = target_criteria.to_a # to load the cache NoBrainer.logger.warn "#{owner} has more than one #{target_name}" if targets.size > 1 targets.first end