mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
20 lines
422 B
Ruby
20 lines
422 B
Ruby
# frozen_string_literal: true
|
|
|
|
class JobResource < ApplicationResource
|
|
self.model = Job
|
|
|
|
attribute :name, :string
|
|
attribute :description, :string
|
|
attribute :finished, :boolean
|
|
attribute :due_date, :date
|
|
attribute :jobbable_type, :string
|
|
attribute :jobbable_id, :integer
|
|
attribute :action, :string
|
|
|
|
attribute :garden_id, :integer, readable: false
|
|
|
|
belongs_to :garden
|
|
needs_writable_garden
|
|
owned
|
|
end
|