You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to pass a list of fields to Hirb.enable that, by default, hides these fields in all tables that Hirb creates. Something like Hirb.enable {width:150, height:200, hide_fields: [:field_name, :another_field_name]}. Of course, this could then be overwritten by explicitly callingHirb.table object_name, fields:[:field_name]`
I think this would be very helpful in a wide number of cases, as many objects have (database) fields that are not interesting when inspecting them most of the time. An example would be the created_at and updated_at timestamps that Rails models have.
The text was updated successfully, but these errors were encountered:
Thanks for reporting your issue! This is one of my 9 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.
I would like to pass a list of fields to
Hirb.enable
that, by default, hides these fields in all tables that Hirb creates. Something likeHirb.enable {width:150, height:200, hide_fields: [:field_name, :another_field_name]}. Of course, this could then be overwritten by explicitly calling
Hirb.table object_name, fields:[:field_name]`I think this would be very helpful in a wide number of cases, as many objects have (database) fields that are not interesting when inspecting them most of the time. An example would be the
created_at
andupdated_at
timestamps that Rails models have.The text was updated successfully, but these errors were encountered: