Skip to content

Commit

Permalink
address deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Nov 19, 2023
1 parent 143b955 commit 8f3b96b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Query < ApplicationRecord

scope :has_information_need, -> { where.not(information_need: [ nil, '' ]) }

serialize :options, JSON
serialize :options, coder: JSON

def parent_list
self.case.queries
Expand Down
2 changes: 1 addition & 1 deletion app/models/score.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class Score < ApplicationRecord
self.table_name = 'case_scores'

serialize :queries, JSON
serialize :queries, coder: JSON

# Associations
belongs_to :case
Expand Down
2 changes: 1 addition & 1 deletion app/models/scorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def self.system_default_scorer

# Transform scale from array to a string
serialize :scale, ScaleSerializer
serialize :scale_with_labels, JSON
serialize :scale_with_labels, coder: JSON

after_initialize do |scorer|
scorer.scale = [] if scorer.scale.blank?
Expand Down

0 comments on commit 8f3b96b

Please sign in to comment.