instance method
validate_options
Ruby on Rails 8.0.4
Since v7.1.6 Private — implementation detail, not part of the public APISignature
validate_options(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File activesupport/lib/active_support/cache.rb, line 913
def validate_options(options)
if options.key?(:coder) && options[:serializer]
raise ArgumentError, "Cannot specify :serializer and :coder options together"
end
if options.key?(:coder) && options[:compressor]
raise ArgumentError, "Cannot specify :compressor and :coder options together"
end
if Cache.format_version < 7.1 && !options[:serializer] && options[:compressor]
raise ArgumentError, "Cannot specify :compressor option when using" \
" default serializer and cache format version is < 7.1"
end
options
end
Defined in activesupport/lib/active_support/cache.rb line 913
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store