method

reload

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: ActiveResource::Base
reload() public

A method to reload the attributes of this object from the remote web service.

Examples

  my_branch = Branch.find(:first)
  my_branch.name # => "Wislon Raod"

  # Another client fixes the typo...

  my_branch.name # => "Wislon Raod"
  my_branch.reload
  my_branch.name # => "Wilson Road"
Show source
Register or log in to add new notes.