Method: Formed::Associations::Association#reload

Defined in:
lib/formed/associations/association.rb

#reload(force = false) ⇒ Object

Reloads the target and returns self on success. The QueryCache is cleared if force is true.



32
33
34
35
36
37
# File 'lib/formed/associations/association.rb', line 32

def reload(force = false)
  reset
  reset_scope
  load_target
  self unless target.nil?
end