Class: Twenty::Project
- Includes:
- ColorableMixin
- Defined in:
- lib/twenty-backend/model/project.rb
Constant Summary
Constants included from ColorableMixin
Instance Method Summary collapse
-
#name ⇒ Object
Validations.
-
#path ⇒ String
The path to a project.
-
#tasks ⇒ Object
Associations.
Methods included from ColorableMixin
Instance Method Details
#name ⇒ Object
Validations
9 |
# File 'lib/twenty-backend/model/project.rb', line 9 validates :name, presence: true |
#path ⇒ String
Returns The path to a project.
19 20 21 |
# File 'lib/twenty-backend/model/project.rb', line 19 def path super&.sub(Dir.home, "~") end |
#tasks ⇒ Object
Associations
14 |
# File 'lib/twenty-backend/model/project.rb', line 14 has_many :tasks, class_name: "Twenty::Task" |