Sha256: cd5698095ff4889afbb3bd78138f6f59c96bed2f1a36864dae491e2a4fef78a0

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

require "sequel"

Sequel.extension :inflector

require 'sequel/plugins/serialization'

# Sequel::Plugins::Serialization.register_format(
#   :yajl,
#   lambda { |v| Yajl::Encoder.new.encode(v) },
#   lambda { |v| Yajl::Parser.new(:symbolize_keys => true).parse(v)   }
# )
Sequel::Plugins::Serialization.register_format(
  :ojson,
  lambda { |v| Oj.dump(v) },
  lambda { |v| Oj.load(v, symbol_keys: true)   }
)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha6 lib/spontaneous/sequel.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/sequel.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/sequel.rb