ar_doc_store icon indicating copy to clipboard operation
ar_doc_store copied to clipboard

Define JSON Attributes in another Model

Open nbrandoni opened this issue 6 years ago • 0 comments

Hi, Is there a way to configure the JSON Attributes in a Table/Model and not in the Model's Code?

I try something like this but didn't work

Atributos.all.map do |attr|
  json_attribute attr.nombre.to_sym, attr.tipo.to_sym
end

What changes do you think would be required to adapt this gem?

nbrandoni avatar Sep 19 '19 23:09 nbrandoni