ruby on rails - How can I specify fields to ignore in Hirb output -
this question helpful not quite need.
i provide list of fields ignore in hirb yaml configuration file. blacklist, opposed whitelist. way, model changes migrations, wont have keep adding fields.
i work:
:output: user: :options: :ignore_fields: - password_digest - password_reset_token
Comments
Post a Comment