Method: GitModel::Persistable#reload

Defined in:
lib/gitmodel/persistable.rb

#reloadObject

Reloads a record and returns the model instance.

The record is reloaded from the branch that the record was last loaded from or last saved to.



154
155
156
157
# File 'lib/gitmodel/persistable.rb', line 154

def reload
  load(path, branch)
  self
end