Class: Project

Inherits:
ApplicationRecord show all
Defined in:
app/models/project.rb

Overview

Model to represent projects

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#==

Class Method Details

.list_active_projectsObject


19
20
21
# File 'app/models/project.rb', line 19

def self.list_active_projects
  Project.active.join(' ')
end

Instance Method Details

#to_sObject


23
24
25
# File 'app/models/project.rb', line 23

def to_s
  name
end