Module: Housekeeping::Projects::ClassMethods

Defined in:
lib/housekeeping/projects.rb

Instance Method Summary (collapse)

Instance Method Details

- (Scope) in_project(project)

Scopes

Parameters:

Returns:

  • (Scope)


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

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

- (Scope) with_project_id(project_id)

Parameters:

  • project_id (Integer)

Returns:

  • (Scope)


37
38
39
# File 'lib/housekeeping/projects.rb', line 37

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