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

Defined in:
activesupport/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



220
221
222
223
224
225
226
227
228
229
# File 'activesupport/lib/active_support/cache/mem_cache_store.rb', line 220

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