We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3675af2 + 2bcf076 commit 06a1148Copy full SHA for 06a1148
core/lib/spree/preferences/persistable.rb
@@ -8,7 +8,7 @@ module Persistable
8
included do
9
include Spree::Preferences::Preferable
10
11
- if method(:serialize).parameters.include?([:key, :type]) # Rails 7.1+
+ if Rails.gem_version >= Gem::Version.new('7.1')
12
serialize :preferences, type: Hash, coder: YAML
13
else
14
serialize :preferences, Hash, coder: YAML
0 commit comments