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

Version Path
spontaneous-0.2.0.beta9 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta8 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta7 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta6 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta5 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta4 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta3 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta2 lib/spontaneous/sequel.rb
spontaneous-0.2.0.beta1 lib/spontaneous/sequel.rb
spontaneous-0.2.0.alpha7 lib/spontaneous/sequel.rb