Module: Sequent::Core::Persistors

Defined in:
lib/sequent/core/persistors/persistor.rb,
lib/sequent/core/persistors/active_record_persistor.rb,
lib/sequent/core/persistors/replay_optimized_postgres_persistor.rb

Defined Under Namespace

Modules: Persistor Classes: ActiveRecordPersistor, ReplayOptimizedPostgresPersistor

Class Method Summary collapse

Class Method Details

.normalize_symbols(value) ⇒ Object

Normalizes symbol values to strings (by using its name) while preserving all other values. This allows symbol/string indifferent comparisons.



378
379
380
# File 'lib/sequent/core/persistors/replay_optimized_postgres_persistor.rb', line 378

def self.normalize_symbols(value)
  value.is_a?(Symbol) ? value.name : value
end