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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -