lib/split/persistence.rb in split-3.4.1 vs lib/split/persistence.rb in split-4.0.0.pre
- old
+ new
@@ -6,11 +6,13 @@
require 'split/persistence/dual_adapter'
require 'split/persistence/redis_adapter'
require 'split/persistence/session_adapter'
ADAPTERS = {
- :cookie => Split::Persistence::CookieAdapter,
- :session => Split::Persistence::SessionAdapter
+ cookie: Split::Persistence::CookieAdapter,
+ session: Split::Persistence::SessionAdapter,
+ redis: Split::Persistence::RedisAdapter,
+ dual_adapter: Split::Persistence::DualAdapter
}.freeze
def self.adapter
if persistence_config.is_a?(Symbol)
ADAPTERS.fetch(persistence_config) { raise Split::InvalidPersistenceAdapterError }