Sha256: 24c74060e5d1a497c8b033f4702482991f77e4edac6bb428aea7b823f9a7356c
Contents?: true
Size: 412 Bytes
Versions: 10
Compression:
Stored size: 412 Bytes
Contents
require "sequel" Sequel.extension :inflector require 'sequel/plugins/serialization' Sequel::Plugins::Serialization.register_format( :ojson, 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
10 entries across 10 versions & 1 rubygems