Skip to content

Commit

Permalink
Readd deprecated attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-ioki committed May 23, 2024
1 parent 749b74d commit 05d60a7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/ioki/model/operator/vehicle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,26 @@ class Vehicle < Base
on: [:update, :read],
omit_if_nil_on: [:update],
type: :integer

deprecated_attribute :seats,
on: [:create, :read, :update],
omit_if_nil_on: [:create, :update],
type: :integer

deprecated_attribute :storage_spaces,
on: [:create, :read, :update],
omit_if_nil_on: [:create, :update],
type: :integer

deprecated_attribute :walker_bays,
on: [:create, :read, :update],
omit_if_nil_on: [:create, :update],
type: :integer

deprecated_attribute :wheelchair_bays,
on: [:create, :read, :update],
omit_if_nil_on: [:create, :update],
type: :integer
end
end
end
Expand Down

0 comments on commit 05d60a7

Please sign in to comment.