Update activity_resource.rb

This commit is contained in:
Daniel O'Connor
2025-09-29 00:12:51 +09:30
committed by GitHub
parent f080a8a566
commit 81b80d9bb7

View File

@@ -7,9 +7,9 @@ module Api
@model.owner = context[:current_user]
end
has_one :owner, class_name: 'Member'
has_one :garden
has_one :planting
has_one :owner, class_name: 'Member', always_include_linkage_data: true
has_one :garden, always_include_linkage_data: true
has_one :planting, always_include_linkage_data: true
attribute :name
attribute :description