Module: Housekeeping::Projects::ClassMethods

Defined in:
lib/housekeeping/projects.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) in_project(project)

Scopes



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

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

- (Object) with_project_id(project_id)



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

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