Skip to content

Commit

Permalink
Declare serialize coder
Browse files Browse the repository at this point in the history
Required for Rails 7.1.

REDMINE-20487
  • Loading branch information
tf committed Dec 18, 2023
1 parent 7d0aba7 commit 63acd42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/pageflow/linkmap_page/color_map_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ class ColorMapFile < GeneratedImageFile

do_not_validate_attachment_file_type :attachment

serialize :attachment_colors
if ActiveRecord.version >= Gem::Version.new('7.1')
serialize :attachment_colors, type: Object, coder: YAML
else
serialize :attachment_colors
end

def sprite_url
attachment.url(:sprite)
Expand Down

0 comments on commit 63acd42

Please sign in to comment.