Get fields in a generator

You can just say:

YourModel.content_columns each do |c| ...

end

Marcelo Junior wrote: