Method: GitModel::Persistable#branch

Defined in:
lib/gitmodel/persistable.rb

#branchObject

Get the branch that the record was last loaded from or was last saved on.

The branch specified in the GitModel config is used by default. Typically, the branch is ‘master’.



70
71
72
# File 'lib/gitmodel/persistable.rb', line 70

def branch
  @branch ||= GitModel.default_branch
end