How can I specify fields to ignore in Hirb output

20 views Asked by At

This question is helpful but not quite what I need.

I would like to provide a list of fields to ignore in a Hirb yaml configuration file. A blacklist, as opposed to a whitelist. This way, as my model changes from migrations, I wont have to keep adding fields.

I would like for something like this to work:


:output:
  User:
    :options:
      :ignore_fields:
        - password_digest
        - password_reset_token
0

There are 0 answers