ar_doc_store
ar_doc_store copied to clipboard
Define JSON Attributes in another Model
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?