reader(force_reload = false)
public
Implements the reader
method, e.g. foo.bar for Foo.has_one :bar
# File activerecord/lib/active_record/associations/singular_association.rb, line 5
def reader(force_reload = false)
if force_reload
klass.uncached { reload }
elsif !loaded? || stale_target?
reload
end
target
end