Module: ActiveSupport::Cache::MemCacheStore::Coders

Defined in:
lib/active_support/cache/mem_cache_store.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Loader, Rails61Coder, Rails70Coder

Class Method Summary collapse

Class Method Details

.[](version) ⇒ Object



187
188
189
190
191
192
193
194
195
196
# File 'lib/active_support/cache/mem_cache_store.rb', line 187

def [](version)
  case version
  when 6.1
    Rails61Coder
  when 7.0
    Rails70Coder
  else
    raise ArgumentError, "Unknown ActiveSupport::Cache.format_version #{Cache.format_version.inspect}"
  end
end