Module: Housekeeping::Projects::ClassMethods

Defined in:
lib/housekeeping/projects.rb

Instance Method Summary collapse

Instance Method Details

#in_project(project) ⇒ Scope

Scopes

Parameters:

Returns:

  • (Scope)


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

def in_project(project)
  where(project:)
end

#with_project_id(project_id) ⇒ Scope

Parameters:

  • project_id (Integer)

Returns:

  • (Scope)


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

def with_project_id(project_id)
  where(project_id:)
end