Specifying custom encoder via block doesn't work.
estum opened this issue · comments
I can't change encoder to provide support with the ActiveModel::Serializers gem.
This feature described in README, but doesn't work:
json encoder
Autocomplete uses Yajl as JSON encoder/decoder, but you can specify your own
class ProductsController < Admin::BaseController autocomplete :brand, :name do |items| CustomJSON::Encoder.encode(items) end end