backend: return project from Task#as_json
This commit is contained in:
parent
6bd3e3ad65
commit
026e11af11
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ class Twenty::Task < Twenty::Model
|
||||||
# Associations
|
# Associations
|
||||||
belongs_to :project, class_name: "Twenty::Project"
|
belongs_to :project, class_name: "Twenty::Project"
|
||||||
|
|
||||||
def to_json(options = {})
|
def as_json(options = {})
|
||||||
{id:, title:, content:, status:,
|
{id:, title:, content:, status:,
|
||||||
project_id:, created_at:, updated_at:}.to_json(options)
|
project:, created_at:, updated_at:}.as_json(options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue