lib/alba.rb in alba-1.2.0 vs lib/alba.rb in alba-1.3.0
- old
+ new
@@ -12,9 +12,10 @@
# Error class for type which is not supported
class UnsupportedType < Error; end
class << self
attr_reader :backend, :encoder, :inferring, :_on_error, :transforming_root_key
+ attr_accessor :inflector
# Set the backend, which actually serializes object into JSON
#
# @param backend [#to_sym, nil] the name of the backend
# Possible values are `oj`, `active_support`, `default`, `json` and nil