Class: ProjectRepository

Inherits:
ApplicationRecord show all
Includes:
Shardable
Defined in:
app/models/project_repository.rb

Class Method Summary collapse

Methods included from Shardable

#shard_name, #shard_name=

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Class Method Details

.find_project(disk_path) ⇒ Object


9
10
11
# File 'app/models/project_repository.rb', line 9

def find_project(disk_path)
  find_by(disk_path: disk_path)&.project
end