Test Account
03/01/2023, 11:48 PM/home/myuser/.bundle/ruby/3.1/bundler/gems/rails-5cbf61502c69/activerecord/lib/active_record/attribute_methods/serialization.rb:207:in 'serialize': missing keyword: :coder If no default coder is configured, a coder must be provided to serialize. (ArgumentError)
`from /home/myuser/myapp/vendor/solidus/core/lib/spree/preferences/persistable.rb10in block in <module:Persistable>'
persistable.rb
looks like this:
module Spree
module Preferences
module Persistable
extend ActiveSupport::Concern
included do
include Spree::Preferences::Preferable
serialize :preferences, Hash
after_initialize :initialize_preference_defaults
end
private
def initialize_preference_defaults
if has_attribute?(:preferences)
self.preferences = default_preferences.merge(preferences)
end
end
end
end
end
Any idea what to do?Jared Norman
Jared Norman
Test Account
03/02/2023, 8:26 AMcore/app/models/spree/preference.rb
- serialize :value
+ serialize :value, YAML
core/app/models/spree/return_item.rb
- serialize :acceptance_status_errors
+ serialize :acceptance_status_errors, YAML
Now that I got Falcon booting, next up on the menu is a StimulusReflex shopping cart ๐kennyadsl
7.1.0-alpha
released yet. Are you working with the rails main branch from GitHub?