Module: Housekeeping::Projects::ClassMethods

Defined in:
lib/housekeeping/projects.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) in_project(project)

Scopes



29
30
31
# File 'lib/housekeeping/projects.rb', line 29

def in_project(project)
  where(project: project)
end

- (Object) with_project_id(project_id)



33
34
35
# File 'lib/housekeeping/projects.rb', line 33

def with_project_id(project_id)
  where(project_id: project_id)
end