Method: Sequel::Plugins::JsonSerializer.configure

Defined in:
lib/sequel/plugins/json_serializer.rb

.configure(model, opts = OPTS) ⇒ Object

Set up the column readers to do deserialization and the column writers to save the value in deserialized_values.



124
125
126
127
128
# File 'lib/sequel/plugins/json_serializer.rb', line 124

def self.configure(model, opts=OPTS)
  model.instance_exec do
    @json_serializer_opts = (@json_serializer_opts || OPTS).merge(opts)
  end
end