Method: GitModel::Persistable#path

Defined in:
lib/gitmodel/persistable.rb

#pathObject

Get the location of the record relative to the repository’s root.

It is determined by appending the name of the directory containing the record with the record’s id.



61
62
63
# File 'lib/gitmodel/persistable.rb', line 61

def path
  @path ||= File.join(self.class.db_subdir, self.id)
end