Skip to content

Feature request: global list of fields to always hide (unless explicitly overwritten) #96

Open
@Qqwy

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions