Skip to content

Commit

Permalink
Serialize using YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Oct 9, 2023
1 parent acdb785 commit 6b8b6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/paper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Paper < ApplicationRecord
searchkick index_name: "joss-production"

include SettingsHelper
serialize :activities, type: Hash, coder: JSON
serialize :metadata, type: Hash, coder: JSON
serialize :activities, type: Hash, coder: YAML
serialize :metadata, type: Hash, coder: YAML

belongs_to :submitting_author,
class_name: 'User',
Expand Down

0 comments on commit 6b8b6d2

Please sign in to comment.