class NoBrainer::Document::Association::HasOneThrough
Public Instance Methods
read()
click to toggle source
Calls superclass method
NoBrainer::Document::Association::HasManyThrough#read
# File lib/no_brainer/document/association/has_one_through.rb, line 5 def read targets = super NoBrainer.logger.warn "#{owner} has more than one #{target_name}" if targets.size > 1 targets.first end