Skip to content

Commit

Permalink
Merge pull request #220 from ioki-mobility/fix/place-attributes
Browse files Browse the repository at this point in the history
fix: place model attributes
  • Loading branch information
tom-ioki committed May 9, 2023
2 parents 9f02a40 + dcf564a commit 4760a5e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/ioki/model/operator/place.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class Place < Base
type: :string

attribute :depot,
on: [:read, :create, :update],
type: :boolean
on: [:read, :create, :update],
omit_if_nil_on: [:create, :update],
type: :boolean

attribute :description,
on: [:create, :read, :update],
Expand Down Expand Up @@ -74,8 +75,9 @@ class Place < Base
type: :string

attribute :waiting_position,
on: [:read, :create, :update],
type: :boolean
on: [:read, :create, :update],
omit_if_nil_on: [:create, :update],
type: :boolean

attribute :version,
on: :read,
Expand Down

0 comments on commit 4760a5e

Please sign in to comment.