Skip to content

Commit

Permalink
Use the rails 7.1+ serialize interface
Browse files Browse the repository at this point in the history
Type was changed from positional to a keyword argument 'type' in 7.1.
The positional argument is removed in rails 7.2.

We have a helper bridge module prepending support for either kwargs
or positional arguments passed to serialize which converts to positional
for rails 7.0 and kwargs for 7.1+.  This was added and automatically
loaded in the rails app via the engine in schema:
ManageIQ/manageiq-schema#756

Similar change as core: ManageIQ/manageiq#23253
  • Loading branch information
jrafanie committed Nov 1, 2024
1 parent 976ffe9 commit 65e027b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/manageiq/showback/input_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module ManageIQ::Showback
class InputMeasure < ApplicationRecord
validates :description, :entity, :group, :fields, :presence => true

serialize :fields, Array
serialize :fields, :type => Array

self.table_name = "showback_input_measures"

Expand Down

0 comments on commit 65e027b

Please sign in to comment.